To generate a starter pipeline configuration for AWS CodePipeline, perform the following tasks in this order:
Create infrastructure resources
Generate the pipeline configuration
Commit your pipeline configuration to Git
Connect your Git repository with your CI/CD system
xxxxxxxxxx
# For GitHub and Bitbucket
sam deploy -t codepipeline.yaml --stack-name <feature-pipeline-stack-name> --capabilities=CAPABILITY_IAM --parameter-overrides="FeatureGitBranch=<branch-name> CodeStarConnectionArn=<codestar-connection-arn>"
# For AWS CodeCommit
sam deploy -t codepipeline.yaml --stack-name <feature-pipeline-stack-name> --capabilities=CAPABILITY_IAM --parameter-overrides="FeatureGitBranch=<branch-name>"