Skip to content

Commit 57b7c16

Browse files
committed
[NDR-232] readding db
1 parent 3804ea4 commit 57b7c16

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

bootstrap/main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ resource "aws_s3_bucket_public_access_block" "public_access_block" {
6767
restrict_public_buckets = true
6868
}
6969

70+
resource "aws_dynamodb_table" "dynamodb_terraform_state_lock" {
71+
name = "ndr-terraform-locks"
72+
hash_key = "LockID"
73+
read_capacity = 20
74+
write_capacity = 20
75+
76+
attribute {
77+
name = "LockID"
78+
type = "S"
79+
}
80+
lifecycle {
81+
prevent_destroy = true
82+
}
83+
}
84+
7085
data "aws_caller_identity" "current" {}
7186

7287
variable "region" {

0 commit comments

Comments
 (0)