How to separate the stages in the pipeline?
Hello all,
I'm trying to separate the stages in the pipeline, but failing.
My project follows the Python webservice template in which the below section, seems to create both "Prod" and "Stage" automatically:
```
Parameters:
ProjectId:
Type: String
Description: CodeStar projectId used to associate new resources to team members
CodeDeployRole:
Type: String
Description: IAM role to allow AWS CodeDeploy to manage deployment of AWS Lambda functions
Stage:
Type: String
Description: The name for a project pipeline stage, such as Staging or Prod, for which resources are provisioned and deployed.
Default: ''
```
I tried:
https://docs.aws.amazon.com/codestar/latest/userguide/customize-ec2-multi-endpoints-newstage.html
And ended up with the new "*-prod" stack failing to create. I also tried:
https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-edit.html
But the downloaded template does not have a deployment stage section.
What I am trying is to be able to have "Stage" as default from a "develop" branch and "Prod" only from "master".
Can someone please provide instructions on how to do that?
Thank you