Skip to content

Commit 90bfb85

Browse files
committed
patch: fix AWS_BUCKET_NAME default incorrect syntax
1 parent 869fe24 commit 90bfb85

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

terraform/service/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ resource "aws_lambda_function" "lambda_function" {
5252
GITHUB_APP_CLIENT_ID = var.github_app_client_id
5353
AWS_SECRET_NAME = var.aws_secret_name
5454
AWS_ACCOUNT_NAME = var.env_name
55-
AWS_BUCKET_NAME = var.aws_bucket_name
55+
AWS_BUCKET_NAME = local.bucket_name
5656
}
5757
}
5858
}

terraform/service/variables.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ variable "aws_secret_name" {
1919
}
2020

2121
variable "aws_bucket_name" {
22-
description = "The name of the S3 bucket which the cloud config is stored in"
22+
description = "The name of the S3 bucket which the cloud config is stored in. This should not include the environment name (i.e. sdp-dev) as it will be added automatically."
2323
type = string
24-
default = "${env_name}-github-repository-archive-script"
24+
default = "github-repository-archive-script"
2525
}
2626

2727
variable "env_name" {
@@ -109,4 +109,5 @@ variable "business_owner_tag" {
109109

110110
locals {
111111
lambda_repo = "${var.env_name}-${var.lambda_name}"
112+
bucket_name = "${var.env_name}-${var.aws_bucket_name}"
112113
}

0 commit comments

Comments
 (0)