Skip to content

Commit

Permalink
feat: Set use tags to help identify resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Feb 11, 2025
1 parent 8c2eb8d commit b9a34d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "aws_kms_key" "backend" {
bucket_arn : aws_s3_bucket.tfstate.arn
})

tags = var.tags
tags = merge({ use = "infrastructure-state" }, var.tags)
}

resource "aws_kms_alias" "backend" {
Expand Down Expand Up @@ -45,7 +45,7 @@ resource "aws_dynamodb_table" "tfstate_lock" {
enabled = true
}

tags = var.tags
tags = merge({ use = "infrastructure-state" }, var.tags)
}

output "bucket" {
Expand Down
2 changes: 1 addition & 1 deletion s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_s3_bucket" "tfstate" {
prevent_destroy = true
}

tags = var.tags
tags = merge({ use = "infrastructure-state" }, var.tags)
}

resource "aws_s3_bucket_public_access_block" "tfstate" {
Expand Down

0 comments on commit b9a34d3

Please sign in to comment.