Skip to content

olcortesb/cdk-cloud9

Repository files navigation

Deploy a cloud9 with CDK

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

Get Started: Configure AWS CDK

# Install
npm install -g aws-cdk

# CDK version
cdk --version

# CDK Bootsraping
cdk bootstrap aws://ACCOUNT-NUMBER/REGION

CLone Repository an deploy

# for and specific profile
cdk deploy --profile your-profile
# or default
cdk deploy

Destroy Stack

cdk destroy CdkCloud9Stack

References:

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

About

IaC with CDk for cloud9

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published