diff --git a/provisioning/resources/configs/iglu-resolver.json b/provisioning/resources/configs/iglu-resolver.json index c1cab2e1..2b3ef941 100644 --- a/provisioning/resources/configs/iglu-resolver.json +++ b/provisioning/resources/configs/iglu-resolver.json @@ -1,5 +1,5 @@ { - "schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-0", + "schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1", "data": { "cacheSize": 500, "repositories": [ @@ -23,7 +23,8 @@ ], "connection": { "http": { - "uri": "http://localhost:8081/api" + "uri": "http://localhost:8081/api", + "apikey": "PLACEHOLDER" } } } diff --git a/utils/scripts/user_data.sh b/utils/scripts/user_data.sh index 66ff2dea..8999f01f 100755 --- a/utils/scripts/user_data.sh +++ b/utils/scripts/user_data.sh @@ -4,6 +4,8 @@ iglu_server_super_uid="980ae3ab-3aba-4ffe-a3c2-3b2e24e2ffce" # DO NOT ALTER BELOW # +iglu_resolver_config_dir="/home/ubuntu/snowplow/configs/iglu-resolver.json" +sed -i 's/\(.*"apikey":\)\(.*\)/\1 "'$iglu_server_super_uid'"/' $iglu_resolver_config_dir export PGPASSWORD=snowplow iglu_server_setup="INSERT INTO apikeys (uid, vendor_prefix, permission, createdat) VALUES ('${iglu_server_super_uid}','*','super',current_timestamp);"