1 Answers
0
You can use another CodeBuild stage with a standard Linux image provided by AWS (ex: aws/codebuild/standard:6.0
which is an Ubuntu 22.04) and do any commands you need. For example:
version: 0.2
env:
shell: bash
phases:
pre_build:
commands:
- aws s3 cp s3://<myconfigbucket>/<myconfigfile> # get a config file
- $(<command to parse config file or any other action needed>)
build:
commands:
- curl -X POST -d 'key1=value1' -d 'key2=value2' https://example.com/fake.php
This is just an example, you can put any bash command you need to match your use case.
answered a month ago
Relevant questions
[CDK Pipeline] Best way to share parameters cross-stage (same account)?
asked 8 months agoCan i give custom input_artifact for codedeploy stage in codepipeline rather than using the stage output of codebuild
asked a month agoIs there a way to change the name of the artifact getting stored in s3 during build stage of codepipeline?
asked a month agoAWS Codepipeline is very slow(source to build stage)
asked 3 years agoCan I skip one of the action in CodeBuild ? to continue the pipieline
Accepted Answerasked 7 months agoAWS CodePipeline custom stage to read config file and call external service endpoint
asked 2 months agoCodeBuild vs CodePipeline with Bitbucket Cloud Repo
asked 7 months agoCodePipeline Approval Stage Timeout Configuration
asked 10 days agoCodebuild Fails Pulling Source when using CodePipeline Source Provider(GH Enterprise)
asked a month agoCodePipeline - how to pass and consume multiple artifacts across CodeBuild Steps?
asked 7 months ago