Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created August 5, 2019 03:07
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/d755b3021e62e9fb0d51240fbc74b2b6 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