- modify the infrastructure/terrgrunt.hcl to change the s3 bucket name to your needs
remote_state {
backend = "s3"
generate = {
path = "backend.tf"
if_exists = "overwrite_terragrunt"
}
config = {
bucket = "<put your own bucket name>"
key = "${path_relative_to_include()}/terraform.tfstate"
region = "<your desired region>"
encrypt = true
}
}
- run
cd infrastructure
terragrunt run-all apply