You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify metadata.json to: { "number_of_stages": 3 }
Commit changes
Run sam pipeline init
Select '2 - Custom Pipeline Template Location'
Enter repository path
Observed result:
sam pipeline init generates a pipeline configuration file that your CI/CD system
can use to deploy serverless applications using AWS SAM.
We will guide you through the process to bootstrap resources for each stage,
then walk through the details necessary for creating the pipeline config file.
Please ensure you are in the root folder of your SAM application before you begin.
Select a pipeline template to get started:
1 - AWS Quick Start Pipeline Templates
2 - Custom Pipeline Template Location
Choice: 2
Template Git location: https://github.com/xxxxxxx/test-aws-pipeline-template
Cloning from https://github.com/xxxxxxx/test-aws-pipeline-template (process may take a moment)
You are using the 3-stage pipeline template.
_________ _________ _________
| | | | | |
| Stage 1 |->| Stage 2 |->| Stage 3 |
|_________| |_________| |_________|
Checking for existing stages...
2 stage(s) were detected, matching the template requirements. If these are incorrect, delete .aws-sam/pipeline/pipelineconfig.toml and rerun
Expected result:
sam pipeline init generates a pipeline configuration file that your CI/CD system
can use to deploy serverless applications using AWS SAM.
We will guide you through the process to bootstrap resources for each stage,
then walk through the details necessary for creating the pipeline config file.
Please ensure you are in the root folder of your SAM application before you begin.
Select a pipeline template to get started:
1 - AWS Quick Start Pipeline Templates
2 - Custom Pipeline Template Location
Choice: 2
Template Git location: https://github.com/xxxxxxx/test-aws-pipeline-template
Cloning from https://github.com/xxxxxxx/test-aws-pipeline-template (process may take a moment)
You are using the 3-stage pipeline template.
_________ _________ _________
| | | | | |
| Stage 1 |->| Stage 2 |->| Stage 3 |
|_________| |_________| |_________|
Checking for existing stages...
3 stage(s) were detected, matching the template requirements. If these are incorrect, delete .aws-sam/pipeline/pipelineconfig.toml and rerun
The text was updated successfully, but these errors were encountered:
Description:
When using a custom template with more than 2 stages, the output still shows:
This is due to the hardcoded value on this line.
Steps to reproduce:
{ "number_of_stages": 3 }
sam pipeline init
Observed result:
Expected result:
The text was updated successfully, but these errors were encountered: