- IaC in AWS CDK
- DevOps tooling and makefile configuration
- Solution deploys to LocalStack and includes an integration test
- Solution deploys to AWS using the same IaC
- LocalStack Pro subscription
You need to do this once.
make local-awscdk-bootstrap
This will deploy the resources.
make local-awscdk-deploy
make local-awscdk-invoke
This will run the integration test asserting the Lambda AppConfig and DynamoDB integrations work.
make local-awscdk-test
To deploy and test in an integration environment, change all of the local-<command>
commands above to integ-<command>
.
make local-awscdk-clean restart-ls
We use the same IaC pipelines to deploy to AWS! This is a very important point that LocalStack enables teams to test their IaC pipelines locally before ever deploying them to a live AWS environment.
Do this from your host machine. Not inside the GDC.
Install AWS cdk
npm install -g aws-cdk
However you set your credentials in your terminal, do it now.
Bootstrap the account. Only need to do this once per account/region.
make sbx-awscdk-bootstrap
This will deploy the resources.
make sbx-awscdk-deploy
make sbx-awscdk-invoke
make sbx-awscdk-destroy