Environment level parameters #4181
Replies: 3 comments
-
Hi, @tegryan-ggs! You should be able to achieve that by using Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hi Janice, I think there are two differences between the above and mappings. (I might be wrong though).
I'll take a closer look at mappings, thanks! |
Beta Was this translation helpful? Give feedback.
-
Ah, okay. So for environment-wide parameters via addons, the Copilot team is currently hard at work on env addons! In much the same way that you can add a |
Beta Was this translation helpful? Give feedback.
-
We leverage Copilot to deploy a lot of infrastructure, some of which accepts parameters which are different per environment. An example might be SNS topics where you want to subscribe an email address to it, but it could be a different email in your production environments versus your test environments. I know there is the addons.parameters.yml file to pass parameters to my addons stacks, but AFIK that only accepts static values or references to CF resources.
By adding a bit of bash to the buildspec.yml file I think we can overload that file with env specific parameters.
Replace:
with:
The drawback of this approach is that it only works in AWS Codebuild/Codepipeline deployments, and not with a
copilot svc deploy
. Is there a way to move this functionality into Copilot proper so it works with both deployments?Beta Was this translation helpful? Give feedback.
All reactions