Created
August 5, 2019 03:07
-
-
Save KyMidd/d755b3021e62e9fb0d51240fbc74b2b6 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