Skip to content

Commit

Permalink
Merge pull request #4 from CuriBio/JRP/TF-IaC
Browse files Browse the repository at this point in the history
terraform fmt
  • Loading branch information
jperson authored Feb 15, 2021
2 parents 193bbaa + e872219 commit 0f008e5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions infra/global/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
}
}
4 changes: 2 additions & 2 deletions infra/global/output.tf
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions infra/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

2 changes: 1 addition & 1 deletion infra/prod/outputs.tf
Original file line number Diff line number Diff line change
@@ -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"
}
14 changes: 7 additions & 7 deletions infra/test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
2 changes: 1 addition & 1 deletion infra/test/outputs.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 0f008e5

Please sign in to comment.