aws / apprunner-roadmap

This is the public roadmap for AWS App Runner.
https://aws.amazon.com/apprunner/
Other
298 stars 14 forks source link

Allow environment variables from Cfn template and apprunner.yaml #133

Open eruvanos opened 2 years ago

eruvanos commented 2 years ago

Community Note

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.

johnbonds commented 1 year ago

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