aws / aws-proton-public-roadmap

This is the public roadmap for AWS Proton
https://aws.amazon.com/proton
Other
199 stars 13 forks source link

[Request]: ssm resolution separation from proton templates jinja variables #38

Closed shasan101 closed 3 years ago

shasan101 commented 3 years ago

Community Note

Tell us about your request What do you want us to build?

Since the proton cfn templates are using jinja templates, the template variable declaration using jinja is similar to the cloudformation ssm resolution. When any ssm parameter is referenced in the template from the parameter store, the deployment errors out stating the cause to be the Key --for which the value was {{resolve:ssm/reference/to/parameter:1}}-- having an empty value.

This is important for us since we use ssm to pass several values to our deployments.

Are you currently working around this issue? N/A

Additional context N/A

Attachments N/A

clareliguori commented 3 years ago

Hi @shasan101, does this guidance resolve your issue? https://github.com/aws/aws-proton-public-roadmap/issues/30#issuecomment-744688178

shasan101 commented 3 years ago

Hi @clareliguori , thank you for the help. When I tried the suggested escaping method from the above comment, the stack was still failing. Whats working for me is:

Subnets:
  - '{{'{{resolve:ssm:/my/parameter/name:1}}'}}'

I hope this could prove useful to others as well.