From a941e9797413470b637facf2629ccaf0b5584283 Mon Sep 17 00:00:00 2001 From: Bryan Chu Date: Tue, 10 Sep 2024 14:48:36 -0700 Subject: [PATCH] add terraform --- frontend/.happy/terraform/envs/dev/main.tf | 4 ++++ frontend/.happy/terraform/envs/prod/main.tf | 4 ++++ frontend/.happy/terraform/envs/staging/main.tf | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/frontend/.happy/terraform/envs/dev/main.tf b/frontend/.happy/terraform/envs/dev/main.tf index 490d98bd8..02120d3d5 100644 --- a/frontend/.happy/terraform/envs/dev/main.tf +++ b/frontend/.happy/terraform/envs/dev/main.tf @@ -3,6 +3,9 @@ data "aws_ssm_parameter" "graphql_endpoint" { name = "/cryoet-dev/graphql_endpoint" } +data "aws_ssm_parameter" "graphql_endpoint_v2" { + name = "/cryoet-dev/graphql_endpoint_v2" +} module "stack" { source = "git@github.com:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=happy-stack-eks-v4.31.0" @@ -15,6 +18,7 @@ module "stack" { deployment_stage = "dev" additional_env_vars = { API_URL = data.aws_ssm_parameter.graphql_endpoint.value + API_URL_V2 = data.aws_ssm_parameter.graphql_endpoint_v2.value ENV = "dev" } services = { diff --git a/frontend/.happy/terraform/envs/prod/main.tf b/frontend/.happy/terraform/envs/prod/main.tf index e5f904803..57171eb4c 100644 --- a/frontend/.happy/terraform/envs/prod/main.tf +++ b/frontend/.happy/terraform/envs/prod/main.tf @@ -3,6 +3,9 @@ data "aws_ssm_parameter" "graphql_endpoint" { name = "/cryoet-prod/graphql_endpoint" } +data "aws_ssm_parameter" "graphql_endpoint_v2" { + name = "/cryoet-prod/graphql_endpoint_v2" +} module "stack" { source = "git@github.com:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=happy-stack-eks-v4.31.0" @@ -16,6 +19,7 @@ module "stack" { additional_env_vars = { ENV = "prod" API_URL = data.aws_ssm_parameter.graphql_endpoint.value + API_URL_V2 = data.aws_ssm_parameter.graphql_endpoint_v2.value } services = { frontend = { diff --git a/frontend/.happy/terraform/envs/staging/main.tf b/frontend/.happy/terraform/envs/staging/main.tf index 256495207..1dc73b477 100644 --- a/frontend/.happy/terraform/envs/staging/main.tf +++ b/frontend/.happy/terraform/envs/staging/main.tf @@ -3,6 +3,9 @@ data "aws_ssm_parameter" "graphql_endpoint" { name = "/cryoet-staging/graphql_endpoint" } +data "aws_ssm_parameter" "graphql_endpoint_v2" { + name = "/cryoet-staging/graphql_endpoint_v2" +} module "stack" { source = "git@github.com:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=happy-stack-eks-v4.31.0" @@ -15,6 +18,7 @@ module "stack" { deployment_stage = "staging" additional_env_vars = { API_URL = data.aws_ssm_parameter.graphql_endpoint.value + API_URL_V2 = data.aws_ssm_parameter.graphql_endpoint_v2.value ENV = "staging" } services = {