From 4e551668281c48e2521b53cacda7c9f6be6fc05a Mon Sep 17 00:00:00 2001 From: Niklas Fondberg Date: Mon, 4 Oct 2021 14:11:52 +0200 Subject: [PATCH] Add environmentName as ENV --- cloudformation/ecs-service.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloudformation/ecs-service.yaml b/cloudformation/ecs-service.yaml index b880762..df4fbd1 100644 --- a/cloudformation/ecs-service.yaml +++ b/cloudformation/ecs-service.yaml @@ -124,6 +124,9 @@ Resources: PortMappings: - ContainerPort: !Ref ContainerPort # Define which parameters should be fetched + Environment: + - Name: ENVIRONMENT_NAME + Value: !Ref EnvironmentName Secrets: - Name: 'DATABASE_URL' ValueFrom: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${EnvironmentName}/graphql-api/DATABASE_URL'