This CDK project allows you create a cloud9 environment for a specific user arn
Change in this file cdk.json
the value of variables:
//https://github.com/olcortesb/cdk-cloud9/blob/main/cdk.json
"name": "Cloud9Env",
"user_arn": "arn:aws:iam::ACCOUNT-NUMBER:NAME",
"instance_type": "t2.micro"
Replace the ACCOUNT-NUMBER and NAME
To view the arn of a specific user run the following command
aws sts get-caller-identity --query 'Arn' --output text
# Install
npm install -g aws-cdk
# CDK version
cdk --version
# CDK Bootsraping
cdk bootstrap aws://ACCOUNT-NUMBER/REGION
# for and specific profile
cdk deploy --profile your-profile
# or default
cdk deploy
cdk destroy CdkCloud9Stack
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template