apprunner-roadmap icon indicating copy to clipboard operation
apprunner-roadmap copied to clipboard

Allow environment variables from Cfn template and apprunner.yaml

Open eruvanos opened this issue 2 years ago • 1 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do * not help prioritize the request If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request Setting up AppRunner Service via IasC provides well known benefits. Right now, it is possible to set environment variables like table names or other dynamic parameters from a Cfn template. This is only possible, if the template does not use the apprunner.yaml, otherwise configuration within CodeConfigurationValues are ignored.

It would be nice to be able to overwrite environment variables of the apprunner.yaml with values from CloudFormation.

Describe alternatives you've considered Right now we provide CodeConfigurationValues and skip the benefits of a pre or post build command.

eruvanos avatar May 09 '22 12:05 eruvanos

Another option would be to allow the user to specify which yaml the user would like to use with the app runner instance they are spinning up rather than hardcoding it to use "apprunner.yaml"

ex: For my main production instance, I would use apprunner_prod.yaml For my main qa instance, I would use apprunner_qa.yaml For my main demo instance, I would use apprunner_demo.yaml

johnbonds avatar Feb 09 '23 22:02 johnbonds