Skip to content

Commit

Permalink
Merge pull request #50 from 7Factor/clayton/user-data-template-fix
Browse files Browse the repository at this point in the history
concourse_base_resource_type_defaults fix
  • Loading branch information
dumptruckman authored Apr 26, 2024
2 parents 2113729 + 857bc93 commit 99924c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions s3.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
web_user_data_content = sensitive(templatefile("${path.module}/templates/web_user_data.sh", local.web_interpolation_vars))
worker_user_data_content = sensitive(templatefile("${path.module}/templates/worker_user_data.sh", local.worker_interpolation_vars))
web_user_data_content = templatefile("${path.module}/templates/web_user_data.sh", local.web_interpolation_vars)
worker_user_data_content = templatefile("${path.module}/templates/worker_user_data.sh", local.worker_interpolation_vars)
}

resource "aws_s3_bucket" "user_data" {
Expand Down Expand Up @@ -64,13 +64,13 @@ resource "aws_s3_object" "cw_agent_prometheus_init" {
resource "aws_s3_object" "web_user_data" {
bucket = aws_s3_bucket.user_data.id
key = "web_user_data.sh"
content = local.web_user_data_content
content = sensitive(local.web_user_data_content)
source_hash = md5(local.web_user_data_content)
}

resource "aws_s3_object" "worker_user_data" {
bucket = aws_s3_bucket.user_data.id
key = "worker_user_data.sh"
content = local.worker_user_data_content
content = sensitive(local.worker_user_data_content)
source_hash = md5(local.worker_user_data_content)
}
2 changes: 1 addition & 1 deletion web_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ variable "web_patch_schedule" {
}

variable "concourse_base_resource_type_defaults" {
type = object({})
type = map(any)
default = {}
description = "Pass default base resource type options here. Defaults to nothing."
}

0 comments on commit 99924c5

Please sign in to comment.