Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable litteral Sub and Ref in Env vars #182

Closed
JohnPreston opened this issue Sep 28, 2020 · 0 comments · Fixed by #183
Closed

Enable litteral Sub and Ref in Env vars #182

JohnPreston opened this issue Sep 28, 2020 · 0 comments · Fixed by #183
Assignees
Labels
enhancement New feature or request

Comments

@JohnPreston
Copy link
Member

Is your feature request related to a problem? Please describe.
As a developer I would want to be able to set an env var and use the native CFN sub functions to substitute values in CFN.

Describe the solution you'd like

services:
  serviceA:
    environment:
      accountId: ${AWS::AccountId}"
      endpoint:  "s3.${AWS::Region}.${AWS::URLSuffix}"

In the template translates as

accountId: !Sub "${AWS::AccountId}"
endpoint: !Sub "s3.${AWS::Region}.${AWS::URLSuffix}"

@JohnPreston JohnPreston added the enhancement New feature or request label Sep 28, 2020
@JohnPreston JohnPreston self-assigned this Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant