Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created November 17, 2019 23:04
Show Gist options
  • Select an option

  • Save KyMidd/42d44f42c8998ed995216bceb4c811b5 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/42d44f42c8998ed995216bceb4c811b5 to your computer and use it in GitHub Desktop.
resource "aws_dynamodb_table" "tf_lock_state" {
name = var.dynamo_db_table_name
# Pay per request is cheaper for low-i/o applications, like our TF lock state
billing_mode = "PAY_PER_REQUEST"
# Hash key is required, and must be an attribute
hash_key = "LockID"
# Attribute LockID is required for TF to use this table for lock state
attribute {
name = "LockID"
type = "S"
}
tags = {
Name = var.dynamo_db_table_name
BuiltBy = "Terraform"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment