Skip to content

Commit

Permalink
Add config_override_b64 option
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Feb 6, 2024
1 parent 67f37c3 commit 5f3f43f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ locals {
user_data = templatefile("${path.module}/templates/user-data.sh.tmpl", {
accept_limited_use_license = var.accept_limited_use_license

config_b64 = base64encode(local.hocon)
config_b64 = var.config_override_b64 == "" ? base64encode(local.config) : var.config_override_b64
version = local.app_version
resolver = "dynamodb:${data.aws_region.current.name}/${aws_dynamodb_table.config.name}/snowplow_resolver"
enrichments = "dynamodb:${data.aws_region.current.name}/${aws_dynamodb_table.config.name}/snowplow_enrichment_"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ variable "app_version" {
default = "3.9.0"
}

variable "config_override_b64" {
description = "App config uploaded as a base64 encoded blob. This variable facilitates dev flow, if config is incorrect this can break the deployment."
type = string
default = ""
}

variable "vpc_id" {
description = "The VPC to deploy Enrich within (must have DNS hostnames enabled)"
type = string
Expand Down

0 comments on commit 5f3f43f

Please sign in to comment.