This code implements demos and concepts from the A Cloud Guru SAA-002 course using infrastructure as code. The top level folders correspond to chapters in the course (e.g., 04-iam-and-s3
). The subfolders correspond to videos (e.g., 04-s3-encryption
). The number prefix aims to keep the examples in order however, the A Cloud Guru content structure may change at any time. Each subfolder contains /terraform
and /cdk
folders with the IaC for the exercise in the corresponding formats.
These examples were developed using Terraform v1.1.7
. Navigate to the desired /terraform
folder and run:
# initialize and install AWS provider
terraform init
# (optional) view the plan
terraform plan
# deploy
terraform apply
# clean up
terraform destroy
These examples were developed using CDK 2.17.0
+. Navigate to the desired /cdk
folder and run:
# install dependencies
npm i
# an AWS account only needs to be bootstrapped once
cdk bootstrap
# (optional) generate CloudFormation to ensure code compiles
cdk synth
# deploy
cdk deploy
# clean up
cdk destroy
The /cdk
folders contain many more files than the /terraform
folders. However, the infrastructure is all defined in /lib/cdk-stack.ts
file.