Hello
I set up Snowplow using the Quickstart Guide in GCP.
I now want to add the enrichments IP Lookup & IP Anon.
I have extended the config.tf file as follows:
iglu_config = templatefile("${path.module}/templates/iglu_config.json.tmpl", { resolvers = jsonencode(local.resolvers) })
campaign_attribution = var.enrichment_campaign_attribution == "" ? file("${path.module}/templates/enrichments/campaign_attribution.json") : var.enrichment_campaign_attribution
event_fingerprint_config = var.enrichment_event_fingerprint_config == "" ? file("${path.module}/templates/enrichments/event_fingerprint_config.json") : var.enrichment_event_fingerprint_config
referer_parser = var.enrichment_referer_parser == "" ? file("${path.module}/templates/enrichments/referer_parser.json") : var.enrichment_referer_parser
ua_parser_config = var.enrichment_ua_parser_config == "" ? file("${path.module}/templates/enrichments/ua_parser_config.json") : var.enrichment_ua_parser_config
yauaa_enrichment_config = var.enrichment_yauaa_enrichment_config == "" ? file("${path.module}/templates/enrichments/yauaa_enrichment_config.json") : var.enrichment_yauaa_enrichment_config
ip_lookups = var.enrichment_ip_lookups == "" ? file("${path.module}/templates/enrichments/ip_lookups.json") : var.enrichment_ip_lookups
anon_ip = var.enrichment_anon_ip == "" ? file("${path.module}/templates/enrichments/anon_ip.json") : var.enrichment_anon_ip
enrichments_list = compact([
local.campaign_attribution,
local.event_fingerprint_config,
local.referer_parser,
local.ua_parser_config,
local.yauaa_enrichment_config,
local.ip_lookups,
local.anon_ip,
var.enrichment_api_request_enrichment_config,
var.enrichment_cookie_extractor_config,
var.enrichment_currency_conversion_config,
var.enrichment_http_header_extractor_config,
var.enrichment_iab_spiders_and_bots_enrichment,
var.enrichment_javascript_script_config,
var.enrichment_pii_enrichment_config,
var.enrichment_sql_query_enrichment_config,
var.enrichment_weather_enrichment_config,
])
So exactly like the 5 default enabled enrichtments.
The apply runs without errors, but I don’t see any change or these enrichments are not performed.
Is my chosen path not right? Does the JSON have to go directly into the main.tf file?
I would be grateful for help.
Best regards,