AWS CodePipeline

1 min read aws, codepipeline

Written in 2018. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/aws-codepipeline-playground.

learn AWS CodePipeline

Using CodeBuild for a “custom” CodePipeline deploy phase

CodeBuild gives you a amz linux server and you can run whatever you want. This is an example using it for the “deployment” phase.

During the “build” phase in buildspec.yml, the post_build command runs mv deploy-buildspec.yml buildspec.yml. The newly renamed buildspec.yml is what gets used in the “deploy” phase.

Exporting Pipeline Definition/Metadata

via CodePipeline.getPipeline method

node scripts/get-pipeline.js > /pipeline-definition-export.json

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.