- Más nuevo
- Más votos
- Más comentarios
Looks like what I faced yesterday is related to this bug:
https://github.com/awslabs/serverless-application-model/issues/191
Not sure how to proceed in order to achieve dev, staging and then prod.
Maybe multiple projects...
As part of knowledge acquisition I followed the steps found in "Add a Prod Stage and Endpoint to a Project" from the user guide https://docs.aws.amazon.com/codestar/latest/userguide/codestar-ug.pdf.
I then created a new pipeline adding only "Source" and "Build", reusing the roles and other resources already created by CodeStar. On the "Source" I changed the branch to be the "Prod" one, leaving the pipeline created by CodeStar to be the "Dev".
For the "Deploy" stages I made sure the stack name was different and on the "Advanced" field on each pipeline I passed the corresponding Stage, e.g.:
{"ProjectId":"uni-api", "CodeDeployRole":"arn:aws:iam::xxxxxxx:role/CodeStarWorker-xxxxxx-CodeDeploy", "Stage":"Prod"}
After all that it finally worked! One pipeline per source branch (for each Stage) working.
Contenido relevante
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año