AT
Size: a a a
AT
VT
RK
terraform {
backend s3 {
encrypt = true
bucket = "wb-sandbox-trayz-qa-terraform-state"
dynamodb_table = "terraform-sandbox-trayz-qa-state-lock-dynamo"
region = "eu-west-1"
key = "sandbox-trayz-qa/terraform.tfstate"
profile = "sandbox"
}
}
resource "aws_s3_bucket" "terraform-state-bucket" {
bucket = "wb-sandbox-trayz-qa-terraform-state"
versioning {
enabled = true
}
lifecycle {
prevent_destroy = true
}
tags = {
Name = "S3 Remote Terraform State Store sandbox-trayz-qa"
}
}
resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" {
name = "terraform-sandbox-trayz-qa-state-lock-dynamo"
hash_key = "LockID"
read_capacity = 20
write_capacity = 20
attribute {
name = "LockID"
type = "S"
}
tags = {
Name = "DynamoDB Terraform State Lock Table trayz qa"
}
}
RK
RK
VT
VT
RK
VT
RK
RK
VT
RK
RK
VT
RK
VT
.terraform
:DRK
VT
RK