I have created Environments in deployments namely Development and Production which are using different aws accounts for deployment purposes.
I have added variables in development environment :
and this is my pipeline snippet :
this is giving me error - AWS_ACCESS_KEY_ID variable is missing.
I have tried to add in repository variables and it worked, but my requirement is environment specific since we are using different aws accounts for production and development.
Let me know what I'm missing.
Same thing: if your variables are defined for a specific environment, they are not visible unless your step is marked as deployment step to that environment. Moreover, you can only define a particular deployment environment once per pipeline. That is, you can't mark two or more steps as deployment steps to the very same environment within one pipeline.
So if the second step you added is meant to do something around the same environment (Development in your case), you need to consolidate two steps into one which would call both pipes in its script.
Hope this makes sense. Let me know if you have any questions.
Well, if they all are part of a single deployment to a single environment from the very same repository, then yes, they all should happen within one step marked as deployment step for that environment.
You can split your pipeline into multiple if that makes sense. In that case each pipeline would only deploy its own component. Again, constraint is: one deployment step into a given environment within a pipeline.
Another option is to move your deployment logic into external script. But you won't be able to easily use pipes there, so this is probably not a desired option I guess, by the look of your current script.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events