Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
update terraform to provision endpoints - change docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Aug 6, 2023
1 parent 387ecf3 commit 9c4d711
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform/hydrocron-main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ resource "aws_security_group_rule" "allow_app_in" {
source_security_group_id = aws_security_group.service-app-sg.id
}

environment {
variables = {
DB_HOST=data.aws_ssm_parameter.fts-db-host.value
DB_NAME=data.aws_ssm_parameter.fts-db-name.value
DB_USERNAME=data.aws_ssm_parameter.fts-db-user.value
DB_PASSWORD_SSM_NAME=data.aws_ssm_parameter.fts-db-user-pass.name
}
}


resource "aws_api_gateway_deployment" "hydrocron-api-gateway-deployment" {
rest_api_id = aws_api_gateway_rest_api.hydrocron-api-gateway.id
Expand Down

0 comments on commit 9c4d711

Please sign in to comment.