Deploy to AWS CodePipeline

Buddy incorporates Amazon's own Continuous Delivery service with a dedicated CodePipeline action, allowing you to trigger deployments on the AWS infrastructure.

Image loading...Example pipeline with CodePipeline deploymentExample pipeline with CodePipeline deployment

Tip
If you are new to Buddy, check out our workflow guides that will tell you how to build, test and deploy your type of application.

Configure pipeline in Buddy

  1. Create a new project in Buddy and select your Git provider:

Image loading...Creating a new projectCreating a new project

  1. Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy.

Image loading...Adding a new pipelineAdding a new pipeline

Configure AWS CodePipeline deployment

Warning
Before you add the action, make sure that your AWS user has proper permissions assigned and full programmatic access to AWS.
  1. Look up AWS on the action list and click AWS CodePipeline to add it to the pipeline:

Image loading...Amazon Web Services actionsAmazon Web Services actions

  1. The action has four configuration tabs:
  • Trigger – here you select the AWS integration, AWS region, and target application. The tab also contains four variables that you can use in other steps of the pipeline: AWS_PIPELINE_NAME, AWS_PIPELINE_VERSION, AWS_PIPELINE_EXECUTION_ID, and AWS_PIPELINE_EXECUTION_STATUS
  • Variables – here you can view default and create your own variables if required
  • Conditions – here you configure the trigger conditions for which the action will run
  • Options – here you define the action's name and behavior on failure and timeout

Image loading...AWS CodePipeline action configurationAWS CodePipeline action configuration

Tip
Checking 'Wait for CodePipeline to complete' will force the action to wait until AWS finishes the operation before marking it as successful/failed.
  1. When ready, click Add this action to finish configuration.
Success
Congratulations – you have just automated CodePipeline with Buddy! 🥳
Last update:
Sep 24, 2024