Add environmentName as ENV
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user