Skip to content

Instantly share code, notes, and snippets.

@killerswan
Created April 24, 2021 08:19
Show Gist options
  • Save killerswan/d0d57b07f16222984963f13ed9e9ffb0 to your computer and use it in GitHub Desktop.
Save killerswan/d0d57b07f16222984963f13ed9e9ffb0 to your computer and use it in GitHub Desktop.
terraform {
/*
backend "s3" {
shared_credentials_file = "~/.aws/credentials"
profile = "mfa"
bucket = "terraform-killerswan-demos"
key = "interviews/next-v1.tfstate"
region = "us-west-2"
# note: add a partition key of LockID (string)
dynamodb_table = "terraform-state-lock-demo-for-next"
}
*/
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.24"
}
}
}
provider "aws" {
profile = "mfa"
region = "us-west-2"
shared_credentials_file = "~/.aws/credentials"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment