{"id":21023171,"url":"https://github.com/tkssharma/aws-cdk-workshop","last_synced_at":"2025-04-12T11:20:40.855Z","repository":{"id":151800280,"uuid":"609987873","full_name":"tkssharma/aws-cdk-workshop","owner":"tkssharma","description":"🎉 🎉 aws-cdk-workshop 🎉 🎉","archived":false,"fork":false,"pushed_at":"2023-03-31T10:52:15.000Z","size":1763,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-26T06:04:55.302Z","etag":null,"topics":["aws","aws-cdk","aws-cdk-construct","aws-cdk-constructs","aws-cdk-node","aws-cdk-typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkssharma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-05T20:23:48.000Z","updated_at":"2024-08-27T21:09:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0f247df-d53a-41ab-ad9e-5b1d0a6a6a77","html_url":"https://github.com/tkssharma/aws-cdk-workshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Faws-cdk-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Faws-cdk-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Faws-cdk-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkssharma%2Faws-cdk-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkssharma","download_url":"https://codeload.github.com/tkssharma/aws-cdk-workshop/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248558124,"owners_count":21124223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-cdk","aws-cdk-construct","aws-cdk-constructs","aws-cdk-node","aws-cdk-typescript"],"created_at":"2024-11-19T11:17:06.971Z","updated_at":"2025-04-12T11:20:40.850Z","avatar_url":"https://github.com/tkssharma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AwsCdkWorkshop2023\n\n# aws-infra\n\nNx with NPM workspace that manages AWS infrastructure and resource provisioning code (IaC)\n\n![](./screens//screen-1.png)\n![](./screens//screen-2.png)\n\n## Prerequisites\n\nInstall AWS v2 CLI tool on OSX\n\n\u003e In the case you use a different operating system please check the reference https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html\n\n```\ncurl \"https://awscli.amazonaws.com/AWSCLIV2.pkg\" -o \"AWSCLIV2.pkg\"\nsudo installer -pkg AWSCLIV2.pkg -target /\n```\n\nCheck the installation succeed\n\n```\nwhich aws\n/usr/local/bin/aws\n\naws --version\naws-cli/2.4.5 Python/3.8.8 Darwin/18.7.0 botocore/2.4.5\n```\n\n### Using both aws v1 and v2\n\nRename version 1 and install the new version\n\n```bash\nwhich aws\n/usr/local/bin/aws\n\nmv /usr/local/bin/aws /usr/local/bin/aws1\n\n# then follow the steps of previous section\n```\n\n## AWS Configure CLI\n\n```\naws configure \n➜  ~ aws configure\nAWS Access Key ID [****************XXXXX]:\nAWS Secret Access Key [****************+XXXXX]:\nDefault region name [us-east-1]:\nDefault output format [json]:\n➜  ~\n\n```\n\n## Play with Simple Demo app \n\n```\ncd packages/demo-app\nnpm run build\n```\n### Initilize AWS Account \n\n```javascript\nconst app = new cdk.App();\nnew DemoAppStack(app, 'DemoAppStack', {\n  /* If you don't specify 'env', this stack will be environment-agnostic.\n   * Account/Region-dependent features and context lookups will not work,\n   * but a single synthesized template can be deployed anywhere. */\n\n  /* Uncomment the next line to specialize this stack for the AWS Account\n   * and Region that are implied by the current CLI configuration. */\n  env: {\n    account: process.env.CDK_DEFAULT_ACCOUNT,\n    region: process.env.CDK_DEFAULT_REGION,\n  },\n\n  /* Uncomment the next line if you know exactly what Account and Region you\n   * want to deploy the stack to. */\n  // env: { account: '123456789012', region: 'us-east-1' },\n\n  /* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */\n});\n\n```\n\n```sh\nexport CDK_DEFAULT_ACCOUNT=XXXXXXX\nexport CDK_DEFAULT_REGION=us-east-1\n\n```\n## AWS-CDK Commands to deploy Stack\n\n```sh\n➜  demo-app git:(develop) ✗ npm run cdk-bootstrap       \n\n\u003e @tkssharma/demo-app@0.1.0 cdk-bootstrap\n\u003e cdk bootstrap\n\n ⏳  Bootstrapping environment aws://146050578321/us-east-1...\n\n\n ➜  demo-app git:(develop) ✗ npm run cdk-deploy   \n\n\u003e @tkssharma/demo-app@0.1.0 cdk-deploy\n\u003e cdk deploy\n\n\n✨  Synthesis time: 2.33s\n\nDemoAppStack: building assets...\n ```\n\n\n## Understand this workspace\n\nRun `nx graph` to see a diagram of the dependencies of the projects.\n\n## Remote caching\n\nRun `npx nx connect-to-nx-cloud` to enable [remote caching](https://nx.app) and make CI faster.\n\n## Further help\n\nVisit the [Nx Documentation](https://nx.dev) to learn more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkssharma%2Faws-cdk-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkssharma%2Faws-cdk-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkssharma%2Faws-cdk-workshop/lists"}