code for article 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
, thepost_build
command runsmv deploy-buildspec.yml buildspec.yml
. The newly renamedbuildspec.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
Twitter • Reddit