Skip to content

Commit

Permalink
Merge pull request #814 from asfadmin/rew/pr-5848-add-dar-tag
Browse files Browse the repository at this point in the history
PR-5848 Add DAR tag to terraform module
  • Loading branch information
reweeden authored May 9, 2024
2 parents ba5f69c + ef8b121 commit fdae029
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
locals {
vpc_security_group_ids_set = length(var.vpc_security_group_ids) > 0
vpc_security_group_ids_set = length(var.vpc_security_group_ids) > 0
cloudformation_template_filename = "${path.module}/thin-egress-app.yaml"
lambda_source_filename = "${path.module}/lambda.zip"
dependency_layer_filename ="${path.module}/dependencylayer.zip"
lambda_source_filename = "${path.module}/lambda.zip"
dependency_layer_filename = "${path.module}/dependencylayer.zip"
}

resource "aws_security_group" "egress_lambda" {
Expand All @@ -19,7 +19,7 @@ resource "aws_security_group" "egress_lambda" {
}

resource "aws_s3_bucket" "lambda_source" {
tags = var.tags
tags = merge(var.tags, { DAR = "YES" })
}

resource "aws_s3_bucket_object" "lambda_source" {
Expand All @@ -44,7 +44,7 @@ resource "aws_s3_bucket_object" "cloudformation_template" {
}

resource "aws_cloudformation_stack" "thin_egress_app" {
depends_on = [
depends_on = [
aws_s3_bucket_object.lambda_source,
aws_s3_bucket_object.lambda_code_dependency_archive,
aws_s3_bucket_object.cloudformation_template
Expand Down
6 changes: 3 additions & 3 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ variable "vpc_subnet_ids" {
description = "Optional list of Subnets for the Lambda function."
}

variable "use_cors"{
type = bool
default = false
variable "use_cors" {
type = bool
default = false
description = "Enable cross origin resource sharing"
}

0 comments on commit fdae029

Please sign in to comment.