dynamodb.tf 459 B

1234567891011121314151617181920
  1. # tfsec:ignore:aws-dynamodb-enable-recovery No need to recover lock table
  2. resource "aws_dynamodb_table" "lock_table" {
  3. count = local.dynamodb_support == true ? 1 : 0
  4. name = aws_s3_bucket.state_storage.id
  5. billing_mode = "PAY_PER_REQUEST"
  6. hash_key = "LockID"
  7. server_side_encryption {
  8. enabled = true
  9. #kms_key_arn = aws_kms_key.tfstate.arn # default
  10. }
  11. attribute {
  12. name = "LockID"
  13. type = "S"
  14. }
  15. tags = local.tags
  16. }