Skip to content
Snippets Groups Projects
Commit b33c62b9 authored by Taha Cherfia's avatar Taha Cherfia
Browse files

NOISSUE: add GEOAPIFY_API_KEY

parent cec46068
Branches
Tags
No related merge requests found
......@@ -133,9 +133,11 @@ JetBrains IDEs.
The server uses Geoapify Geocoding API to create autocomplete predictions for
country, region, or city names. In order to be able to use the Geoapify
Geocoding API, requests are equipped with an API key that is used by the
Geoapify API to match the project and for billing purposes.
Geoapify API to match the project and for billing purposes. Within the
deployment, two keys are in usage (managed by terraform):
This key is shared amongst all environments. You can find the key in passbolt.
1. `geoapify-api-key-development`
2. `geoapify-api-key-production`
## Local execution
......
......@@ -52,7 +52,7 @@ resource "google_cloud_run_service" "geo_api" {
value_from {
secret_key_ref {
key = "latest"
name = "GEOAPIFY_API_KEY"
name = local.environment_name == "production" ? "GEOAPIFY_API_KEY_PRODUCTION" : "GEOAPIFY_API_KEY_DEVELOPMENT"
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment