+++ title = "Multi-Environment Pipeline Setup" weight = 46 +++ Open your [AWS CodePipeline console](https://console.aws.amazon.com/codepipeline/home). - Click **Create pipeline** - Name it **serverless-pipeline** - Select **Existing service role** - Browse for **serverless-catalog-wksp-pipeline-role**, click **Next** ![Pipeline-1](/images/pipeline-create-1.png?width=50pc&classes=shadow) - Select **AWS CodeCommit** as **Source provider** - Select **serverless-repo** as **Repository name** - Select **master** as **Branch name** - Leave the last option as default and click **Next** ![Pipeline-2](/images/pipeline-create-2.png?width=50pc&classes=shadow) - Select **AWS CodeBuild** as **Build provider** - Select your current region - Click **Create project** to configure your CodeBuild project. A pop-up will open. ![Build-1](/images/create-build-1.png?width=50pc&classes=shadow) - Name it **serverless-build-project** - In the **Environment** section select **Managed image** as **Environment image** - Select **Amazon Linux 2** as **Operating system** - Select **Standard** as **Runtime(s)** - Select **aws/codebuild/amazonlinux2-x86-64-standard:2.0** as **Image** - For **Service role**, choose **Existing service role** - Browse for **serverless-catalog-wksp-build-role** under **Role ARN** - Uncheck the **Allow AWS CodeBuild to modify this service role so it can be used with this build project** box - Expand the arrow for **Additional configuration** - On **Environment variables** set **Name** as **BUILD_OUTPUT_BUCKET** and **Value** as **aws-serverless-catalog-wksp-build-``** created in the previous step **(without the s3://)** - Leave all other settings as default, click **Continue to CodePipeline** - Click **Next** ![Pipeline-3](/images/pipeline-create-3.png?width=50pc&classes=shadow) - Click **Skip deploy stage** - Click **Skip** - Review your settings and click **Create pipeline** Your pipeline has now been created with minimal configuration and will attempt to run for the first time. Allow it a couple of minutes to complete until we move on. ![Pipeline-4](/images/pipeline-create-4.png?width=50pc&classes=shadow)