- Install Terragrunt https://github.com/gruntwork-io/terragrunt#quick-start
- Install AWS CLI and configure it with your AWS Account AWS CLI
- Clone this repository
- Configure environment variables
- Create a AWS S3 bucket [Using AWS S3 Bucket documentation] (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html)
example:
TF_VAR_BUCKET=my-super-bucket
TF_VAR_ENCRYPT=true
TF_VAR_BUCKET_REGION=us-east-1
TF_VAR_GRUNT_BLOG_PROD_KEY=the-key-to-store-your/statefile.tfstate
- Run
terragrunt init
- Run
terragrunt plan
- Run
terragrunt apply
You will be prompted to confirm if you want to create the resource, type yes to create it.
To destroy the infrastructure
Run terragrunt destroy
and confirm when prompted