Skip to content

Commit b1a44f1

Browse files
committed
update README
1 parent 2aa8a33 commit b1a44f1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packages/@aws-cdk/aws-cloud9/README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,21 @@ const c9env = new cloud9.Ec2Environment(this, 'Cloud9Env3', {
4949
new cdk.CfnOutput(this, 'URL', { value: c9env.ideUrl });
5050
```
5151

52+
### Cloning Repositories
53+
5254
Specify `repositories` to clone AWS Codecommit repositories into the environment:
5355

5456
```ts
55-
new cloud9.Ec2Environment(stack, 'C9Env', {
57+
const repo = new codecommit.Repository(this, 'Repo', {
58+
repositoryName: 'foo',
59+
});
60+
61+
const c9env = new cloud9.Ec2Environment(this, 'C9Env', {
5662
vpc,
57-
repositories: [
63+
clonedRepositories: [
5864
{
59-
repository: codecommit.Repository.fromRepositoryName(stack, 'Repo', 'foo'),
60-
path: '/foo',
65+
url: repo.repositoryCloneUrlHttp,
66+
clonePath: '/foo',
6167
},
6268
],
6369
});

0 commit comments

Comments
 (0)