Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR-5848 Add DAR tag to terraform module #814

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Loading