Skip to content

Commit

Permalink
Add tags to bucket objects
Browse files Browse the repository at this point in the history
  • Loading branch information
reweeden committed Oct 3, 2024
1 parent 1971902 commit 3eb4866
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@ resource "aws_s3_object" "lambda_source" {
key = "${filemd5(local.lambda_source_filename)}.zip"
source = local.lambda_source_filename
source_hash = filemd5(local.lambda_source_filename)
tags = var.tags
}

resource "aws_s3_object" "lambda_code_dependency_archive" {
bucket = aws_s3_bucket.lambda_source.bucket
key = "${filemd5(local.dependency_layer_filename)}.zip"
source = local.dependency_layer_filename
source_hash = filemd5(local.dependency_layer_filename)
tags = var.tags
}

resource "aws_s3_object" "cloudformation_template" {
bucket = aws_s3_bucket.lambda_source.bucket
key = "${filemd5(local.cloudformation_template_filename)}.yaml"
source = local.cloudformation_template_filename
source_hash = filemd5(local.cloudformation_template_filename)
tags = var.tags
}

resource "aws_cloudformation_stack" "thin_egress_app" {
Expand Down

0 comments on commit 3eb4866

Please sign in to comment.