Skip to content

Commit

Permalink
Merge pull request #325 from nulib/4615-model-config
Browse files Browse the repository at this point in the history
OpenSearch model config
  • Loading branch information
kdid authored May 2, 2024
2 parents 90795c0 + 51c6b61 commit 9e56613
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 8 additions & 6 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 8 additions & 1 deletion terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ variable "environment_name" {
}

variable "honeybadger_api_key" {
type = string
type = string
}

variable "next_public_dcapi_endpoint" {
Expand All @@ -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
Expand Down

0 comments on commit 9e56613

Please sign in to comment.