NEW: code revised

This commit is contained in:
xpk
2020-08-17 12:24:15 +08:00
parent c6928fff02
commit 15ff974790
7 changed files with 141 additions and 17 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ resource "random_integer" "suffix" {
}
resource "aws_s3_bucket" "state" {
bucket = "tfstate-sandbox-hkex-${random_integer.suffix.result}"
bucket = "tfstate-${var.customer-name}-${var.environment}-${random_integer.suffix.result}"
force_destroy = true
tags = var.default-tags
@@ -23,7 +23,7 @@ resource "aws_s3_bucket" "state" {
}
resource "aws_dynamodb_table" "statelock" {
name = "tflock-sandbox-HKEX-${random_integer.suffix.result}"
name = "tflock-${var.custoemr-name}-${var.environment}-${random_integer.suffix.result}"
read_capacity = 10
write_capacity = 10
hash_key = "LockID"