-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more lambda config options (#573)
* fet: more lambda config options * chore: remove unused var * review
- Loading branch information
1 parent
fa1b327
commit b8108a6
Showing
5 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
locals { | ||
domain_parts = split(".", var.buz_domain) | ||
cookie_domain = join(".", slice(local.domain_parts, 1, length(local.domain_parts))) # Assumes Buz is running on a subdomain and the cookie should be on root | ||
buz_debug_var = "DEBUG" | ||
buz_config_var = "BUZ_CONFIG_PATH" | ||
buz_config_path = "/etc/buz/config.yml" | ||
system_env_base = "${var.system}-${var.env}-" | ||
artifact_repository = "${local.system_env_base}img" | ||
image = "buz:${var.buz_version}" | ||
buz_source_image = "ghcr.io/silverton-io/${local.image}" | ||
service_name = "${local.system_env_base}collector" | ||
config = "${local.system_env_base}config" | ||
schema_bucket = "${local.system_env_base}${var.schema_bucket_name}" | ||
events_bucket = "${local.system_env_base}${var.events_bucket_name}" | ||
default_output = "buz_events" | ||
deadletter_output = "buz_invalid_events" | ||
domain_parts = split(".", var.buz_domain) | ||
cookie_domain = join(".", slice(local.domain_parts, 1, length(local.domain_parts))) # Assumes Buz is running on a subdomain and the cookie should be on root | ||
buz_debug_var = "DEBUG" | ||
buz_config_var = "BUZ_CONFIG_PATH" | ||
buz_config_path = "/etc/buz/config.yml" | ||
system_env_base = "${var.system}-${var.env}-" | ||
artifact_repository = "${local.system_env_base}img" | ||
image = "buz:${var.buz_version}" | ||
buz_source_image = "${var.buz_image_repo}/${local.image}" | ||
service_name = "${local.system_env_base}collector" | ||
config = "${local.system_env_base}config" | ||
schema_bucket = "${local.system_env_base}${var.schema_bucket_name}" | ||
events_bucket = "${local.system_env_base}${var.events_bucket_name}" | ||
default_output = "buz_events" | ||
deadletter_output = "buz_invalid_events" | ||
metadata_extraction_params = "{isValid:.isValid,vendor:.vendor,namespace:.namespace,version:.version}" | ||
s3_dynamic_prefix = "isValid=!{partitionKeyFromQuery:isValid}/vendor=!{partitionKeyFromQuery:vendor}/namespace=!{partitionKeyFromQuery:namespace}/version=!{partitionKeyFromQuery:version}/year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/" | ||
s3_dynamic_prefix = "isValid=!{partitionKeyFromQuery:isValid}/vendor=!{partitionKeyFromQuery:vendor}/namespace=!{partitionKeyFromQuery:namespace}/version=!{partitionKeyFromQuery:version}/year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ terraform { | |
} | ||
|
||
provider "aws" { | ||
region = var.aws_region | ||
} | ||
region = var.aws_region | ||
profile = var.aws_profile | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters