Skip to content

Instantly share code, notes, and snippets.

@cooltoast
Created January 11, 2021 18:24
Show Gist options
  • Save cooltoast/cd4793b1945cc7a25f59b39db4290567 to your computer and use it in GitHub Desktop.
Save cooltoast/cd4793b1945cc7a25f59b39db4290567 to your computer and use it in GitHub Desktop.
// A Terraform settings block.
terraform {
backend "s3" {
// Name of the S3 bucket to store state in.
bucket = "my-bucket"
// The Terraform state’s key in the bucket.
key = "path/to/my/key"
// Enable AES-256 server-side encryption for Terraform state.
encrypt = true
// AWS cloud storage region where the S3 bucket lives.
region = "us-east-1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment