Hello,
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.
Thanks.
Hello @Darshan Gerra ,
It looks like the step with AWS pipe is missing deployment: Deployment property. The previous step, in turn, shouldn't have it as it doesn't actually do deploy.
Hope this helps.
Cheers,
Daniil
Thanks Daniil,
adding deployment: Development in first step works, and i'm getting another error in another step. Require your expertise and help.
Pipeline snippet :
Error :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Daniil,
I have tried to merge steps and it worked. One thing I want to know on this : if I have s3 deployment , lambda deployments, docker images deployment to ec2 using code-deploy in my application, So should I include all these in a single step??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Understood, I have merged all deployments into a single step.
Thanks alot Daniil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.