Demonstration of building API services using AWS CDK, with each stack configured as Infrastructure as Code (IaC).
Here are the commands to setup the project with AWS CDK v2:
# To install TypeScript.
npm install -g typescript
# To install/upgrade AWS CDK.
npm install -g aws-cdk
cdk --version # To check the version of AWS CDK.
# To bootstrap the environment.
cdk bootstrap
export AWS_PROFILE=default # Replace with your AWS profile.
export AWS_ACCOUNT_ID=1234567890 # Replace with your AWS account ID.
export AWS_REGION=us-east-1 # Replace with your AWS region.
export AWS_STACK_PREFIX=test- # Set the stack prefix to avoid conflicts with other stacks. Default is `test-`.
- test-layer-swoole - To Test the Swoole layer of Bref.
- test-roles - To test AWS role creation.
- state machines:
- test-state-machine - To test state machines in AWS.
- test-state-machine-map - How to use map in state machines.
- test-state-machine-nested - To test state machine execution within another state machine.
- test-state-machine-selective-execution - How to run states selectively in a state machine.
- test-vpc - An example to create a VPC in AWS.
- test-eni - To create a new security group with two new network interfaces attached to it.