Version: 0.7.1
Last Updated: Unknown
Use this tempalate to generate new lift projects.
| Variable | Data Type | Info |
|---|---|---|
name | string | Name of the blog post |
1---2basedir: content/blog3---4---5date: "<%= name.split('-').filter((_data, index) => index < 3).join("-") %>"6image: https://cdn.dennisokeeffe.com/assets/<%= name %>/main-image.png7title: <%= _.startCase(name.split('-').filter((_data, index) => index >= 3)) %>8description: <%= description %>9tags: "aws,aws-cdk,typescript"10icons: "dok,aws,aws-cdk,ts"11series:12 - "Working with the TypeScript AWS CDK": 113---1415This post will demonstrate how we can ...1617The final code can be found on my GitHub repo [`okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>`](https://github.com/okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>).18## Prerequisites19201. Basic familiarity with [AWS CDK for TypeScript](https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-typescript.html).2122## Getting started2324We will clone the template repo to get started:2526```s27$ git clone https://github.com/okeeffed/using-the-aws-cdk-with-localstack-and-aws-cdk-local <%= name.split('-').filter((_data, index) => index >= 3).join("-") %>28$ cd <%= name.split('-').filter((_data, index) => index >= 3).join("-") %>29$ npm i30# if install fails, remove the lockfile and try again31```3233At this stage, we will have the app in a basic working state.3435In order to create the CDN stack, we will require the following AWS CDK libraries:3637```s38@aws-cdk/core39@aws-cdk/aws-ec240@aws-cdk/aws-ecs41@aws-cdk/aws-ecs-patterns42```4344We can install these prior to doing any work:4546```s47npm i @aws-cdk/core @aws-cdk/aws-ec2 @aws-cdk/aws-ecs @aws-cdk/aws-ecs-patterns48```4950The repository that we cloned already has a `upgrade` script supplied. We can use this to ensure our CDK packages are at parity:5152```s53npm run upgrade54```5556We are now at a stage add a pattern construct to a stack.5758## ...5960...6162## Summary6364Today's post demonstrated how to ...6566## Resources and further reading67681. [AWS CDK for TypeScript](https://docs.aws.amazon.com/cdk/latest/guide/work-with-cdk-typescript.html)692. [`okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>`](https://github.com/okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>)7071_Photo credit: [`user`](https://unsplash.com/@user)_