Skip to content

Instantly share code, notes, and snippets.

@ksummersill2
Created June 23, 2020 03:45
Show Gist options
  • Save ksummersill2/c282fc638437f408b7c643f610ee9220 to your computer and use it in GitHub Desktop.
Save ksummersill2/c282fc638437f408b7c643f610ee9220 to your computer and use it in GitHub Desktop.
Create DynamoDB Table for Terraform State management
resource "aws_dynamodb_table" "terraform_state_lock" {
name = "terraform-lock"
read_capacity = 5
write_capacity = 5
hash_key = "LockID"
billing_mode = "PAY_PER_REQUEST"
attribute {
name = "LockID"
type = "S"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment