Simple demo application illustrating deployment of AWS resources using CDK for Terraform.
To install the dependencies, run the following command:
pipenv installTo generate CDK for Terraform constructs for Terraform providers and modules used in the project, run the following command:
cdktf getTo compile and generate Terraform configuration, run the following command:
cdktf synthThe above command will create a folder called cdktf.out that contains all Terraform JSON configuration that was generated.
To deploy the stack, run the following command:
cdktf deployLocalStack currently does not provide a wrapper (similar to cdklocal or tflocal) to run CDK for Terraform. Therefore, you need to configure the AWS provider to redirect requests to the LocalStack API (http://localhost:4566 by default), using Terraform Override mechanism. Check the localstack_config.py file for an example.