I am building an AWS CodePipeline which depends on two source repositories. If the 'CodeBuild' step is specified with multiple Input artifacts, then you get the error: .. declares 2 input artifacts which is more than the maximum count
. Documentation has a strict requirement for CodeBuild to have only a single input artifact.
Lambdas, on another hand, do not have this limitation. I've been looking for a way how a Lambda could "merge" two artifacts into a single one which I can pass to the CodeBuild then. Unfortunately, information on this subject is quite limited.
Does anyone have a working CodePipeline Lambda which would merge two Artifacts into one?
Note: Documentation about How to access artifacts.