Skip to content

Commit

Permalink
add terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
bchu1 committed Sep 10, 2024
1 parent bd1903d commit a941e97
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/.happy/terraform/envs/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 = {
Expand Down
4 changes: 4 additions & 0 deletions frontend/.happy/terraform/envs/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 = {
Expand Down
4 changes: 4 additions & 0 deletions frontend/.happy/terraform/envs/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 = {
Expand Down

0 comments on commit a941e97

Please sign in to comment.