Skip to content

Commit

Permalink
Search API v2: Add datastore to Search Admin secret
Browse files Browse the repository at this point in the history
Search Admin needs access to the name of the datastore, so this adds it
to the corresponding AWS Secrets Manager secret.
  • Loading branch information
csutter committed Jan 27, 2025
1 parent d1bcba6 commit b7e2735
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terraform/deployments/search-api-v2/discovery_engine.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ resource "aws_secretsmanager_secret_version" "discovery_engine_configuration_sea
secret_id = aws_secretsmanager_secret.discovery_engine_configuration_search_admin.id
secret_string = jsonencode({
"GOOGLE_CLOUD_CREDENTIALS" = base64decode(google_service_account_key.search_admin.private_key)
"DISCOVERY_ENGINE_DATASTORE" = google_discovery_engine_data_store.govuk_content.name,
"DISCOVERY_ENGINE_ENGINE" = google_discovery_engine_search_engine.govuk.name
"DISCOVERY_ENGINE_SERVING_CONFIG" = local.discovery_engine_site_search_serving_config_path
})
Expand Down

0 comments on commit b7e2735

Please sign in to comment.