From 51c6b61c59a8ac265d2b25f6cdcbac15bb353f9e Mon Sep 17 00:00:00 2001 From: Karen Shaw Date: Thu, 2 May 2024 14:47:29 +0000 Subject: [PATCH] OpenSearch model config --- terraform/main.tf | 14 ++++++++------ terraform/variables.tf | 9 ++++++++- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index 467dfd31..51c5f8ce 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -74,12 +74,14 @@ resource "aws_amplify_app" "dc-next" { } environment_variables = { - ENV = var.environment_name - HONEYBADGER_API_KEY = var.honeybadger_api_key - HONEYBADGER_ENV = var.environment_name - NEXT_PUBLIC_DCAPI_ENDPOINT = var.next_public_dcapi_endpoint - NEXT_PUBLIC_DC_URL = var.next_public_dc_url - NEXT_PUBLIC_DC_SITEMAP_BUCKET = aws_s3_bucket_website_configuration.sitemap_website.website_endpoint + ENV = var.environment_name + HONEYBADGER_API_KEY = var.honeybadger_api_key + HONEYBADGER_ENV = var.environment_name + NEXT_PUBLIC_DCAPI_ENDPOINT = var.next_public_dcapi_endpoint + NEXT_PUBLIC_DC_URL = var.next_public_dc_url + NEXT_PUBLIC_DC_SITEMAP_BUCKET = aws_s3_bucket_website_configuration.sitemap_website.website_endpoint, + NEXT_PUBLIC_OPENSEARCH_MODEL_ID = var.next_public_opensearch_model_id, + NEXT_PUBLIC_OPENSEARCH_PIPELINE = var.next_public_opensearch_pipeline } custom_rule { diff --git a/terraform/variables.tf b/terraform/variables.tf index 583a35d2..0d2358ce 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -32,7 +32,7 @@ variable "environment_name" { } variable "honeybadger_api_key" { - type = string + type = string } variable "next_public_dcapi_endpoint" { @@ -43,6 +43,13 @@ variable "next_public_dc_url" { type = string } +variable "next_public_opensearch_model_id" { + type = string +} + +variable "next_public_opensearch_pipeline" { + type = string +} variable "production_branch" { type = string