From e8722199ab1b0e0b7d031e93266799a4df1934b6 Mon Sep 17 00:00:00 2001 From: Jason Person Date: Mon, 15 Feb 2021 14:46:43 -0800 Subject: [PATCH] terraform fmt --- infra/global/main.tf | 8 ++++---- infra/global/output.tf | 4 ++-- infra/prod/main.tf | 4 ++-- infra/prod/outputs.tf | 2 +- infra/test/main.tf | 14 +++++++------- infra/test/outputs.tf | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/infra/global/main.tf b/infra/global/main.tf index fa04afef..27a5758a 100644 --- a/infra/global/main.tf +++ b/infra/global/main.tf @@ -23,9 +23,9 @@ resource "aws_s3_bucket" "terraform_state" { } resource "aws_dynamodb_table" "terraform_locks" { - name = "curi-terraform-locks" + name = "curi-terraform-locks" billing_mode = "PAY_PER_REQUEST" - hash_key = "LockID" + hash_key = "LockID" attribute { name = "LockID" @@ -36,10 +36,10 @@ resource "aws_dynamodb_table" "terraform_locks" { terraform { backend "s3" { bucket = "curi-tf-state" - key = "global/terraform.tfstate" + key = "global/terraform.tfstate" region = "us-east-1" dynamodb_table = "curi-terraform-locks" - encrypt = true + encrypt = true } } diff --git a/infra/global/output.tf b/infra/global/output.tf index 3684f67e..27894afd 100644 --- a/infra/global/output.tf +++ b/infra/global/output.tf @@ -1,9 +1,9 @@ output "s3_bucket_arn" { - value = aws_s3_bucket.terraform_state.arn + value = aws_s3_bucket.terraform_state.arn description = "The ARN of the S3 bucket" } output "dynamodb_table_name" { - value = aws_dynamodb_table.terraform_locks.name + value = aws_dynamodb_table.terraform_locks.name description = "The name of the dynamodb table" } diff --git a/infra/prod/main.tf b/infra/prod/main.tf index 3769d760..64127511 100644 --- a/infra/prod/main.tf +++ b/infra/prod/main.tf @@ -14,11 +14,11 @@ resource "aws_s3_bucket" "prod_bucket" { terraform { backend "s3" { bucket = "curi-tf-state" - key = "prod/terraform.tfstate" + key = "prod/terraform.tfstate" region = "us-east-1" dynamodb_table = "curi-terraform-locks" - encrypt = true + encrypt = true } } diff --git a/infra/prod/outputs.tf b/infra/prod/outputs.tf index 652235b3..7fde9719 100644 --- a/infra/prod/outputs.tf +++ b/infra/prod/outputs.tf @@ -1,4 +1,4 @@ output "s3_bucket_arn" { - value = aws_s3_bucket.prod_bucket.arn + value = aws_s3_bucket.prod_bucket.arn description = "The ARN of the S3 bucket" } diff --git a/infra/test/main.tf b/infra/test/main.tf index 73492924..ad118f37 100644 --- a/infra/test/main.tf +++ b/infra/test/main.tf @@ -12,12 +12,12 @@ resource "aws_s3_bucket" "test_bucket" { } terraform { - backend "s3" { - bucket = "curi-tf-state" - key = "test/terraform.tfstate" - region = "us-east-1" + backend "s3" { + bucket = "curi-tf-state" + key = "test/terraform.tfstate" + region = "us-east-1" - dynamodb_table = "curi-terraform-locks" - encrypt = true - } + dynamodb_table = "curi-terraform-locks" + encrypt = true + } } diff --git a/infra/test/outputs.tf b/infra/test/outputs.tf index 93ed2995..3f93b06d 100644 --- a/infra/test/outputs.tf +++ b/infra/test/outputs.tf @@ -1,4 +1,4 @@ output "s3_bucket_arn" { - value = aws_s3_bucket.test_bucket.arn + value = aws_s3_bucket.test_bucket.arn description = "The ARN of the S3 bucket" }