Search code examples
amazon-web-servicesaws-code-deployaws-codepipelineaws-codebuild

How localy test an AWS Codepipeline (Codebuild+Codeploy) without need to reupload


I my application I need to be able to make some changes on the existing pipeline, therefore I want to be able to test it locally without need to commit my code all over the time in order to check its functionality.

Do you know how I can do that? What I want to do is to check whether the pipeline with my changes will break my build process without actually doing remotely the build and the deployment.


Solution

  • There is an option to run your build locally using CodeBuild Local [1], however no such option exist for CodeDeploy or CodePipeline.

    You may be able to attack the problem in a different way. Try to disable the transition from Build to Deploy or put a Manual approval action before Deploy action in Deploy stage to control when the deployment occurs.

    Ref:

    [1] https://docs.aws.amazon.com/codebuild/latest/userguide/use-codebuild-agent.html#use-codebuild-agent