Reputation: 223
I have a lambda that is initiating a CodePipeline execution via the AWS SDK startPipelineExecution
function. Is there any mechanism available to pass a parameter to the CodePipeline build so that it may use the value within the CodeBuild build as an environment variable?
Upvotes: 4
Views: 3057
Reputation: 1354
Update: The startPipelineExecution action now accepts a list of variables to override pipeline variables for a new execution.
Original answer: Currently CodePipeline does not provide any functionality for passing parameters into the Source Stage. Depending on the CodePipeline setup, I would look into one of the following:
env:
parameter-store:
key: "value"
Upvotes: 6