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_buildcommand runsmv deploy-buildspec.yml buildspec.yml. The newly renamedbuildspec.ymlis what gets used in the “deploy” phase.


Exporting Pipeline Definition/Metadata
via
CodePipeline.getPipelinemethod
node scripts/get-pipeline.js > /pipeline-definition-export.json
Twitter • Reddit