Configure AWS credentials
aws configure
# AWS Access Key ID [None]: <value>
# AWS Secret Access Key [None]: <value>
# Default region name [None]: us-east-1
aws configure set aws_session_token <access-token>
- Manually create new S3 bucket named
serverless-project-cdktf-state
with default configurations.
NOTE: You only need to create this bucket once
npm install
- Make sure to build UI first.
cdktf deploy
cdktf destroy
Use this documentation to find relevant AWS service and its configuration example - https://github.com/hashicorp/cdktf-aws-cdk/blob/main/docs/API.md