Skip to content

Instantly share code, notes, and snippets.

@kunduso
Created March 11, 2021 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunduso/6e1dba046e7889ec08f6b931175757ae to your computer and use it in GitHub Desktop.
Save kunduso/6e1dba046e7889ec08f6b931175757ae to your computer and use it in GitHub Desktop.
This is a representation of the contents of an AWS backend with bucket and dynamoDB details
terraform {
backend "s3" {
bucket = "$(BackendBucketName)" # the name of the S3 bucket that was created
encrypt = true
key = "$(PathToTFStateFile)" # the path to the terraform.tfstate file stored inside the bucket
region = "$(BucketRegion)" # the location of the bucket
dynamodb_table = "$(BackendLockTableName)" # the name of the table to store the lock
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment