Created
November 17, 2019 23:04
-
-
Save KyMidd/42d44f42c8998ed995216bceb4c811b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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