Artifacts via extraInputs on CodeBuildAction dont show up
See original GitHub issueI have two sources in my codepipeline project, S3 and Github. Those two sources are wired up in CodeBuildAction via input and extraInputs properties. That is, Github as input and S3 as extraInputs.
During build, only the content of the input property shows up. If i flip the input, the content of the other artifact show up, so its not an artifact issue per se.
Perhaps i am missing the intent of the property extraInputs but i ve seen tests in CDK repo which worked nearly the same. Unfortunately not much documentation on that prop out there.
Reproduction Steps
Create a GitHub Source:
githubSourceAction = new codepipeline_actions.GitHubSourceAction({
...
output: sourceOutput,
)}
Create a S3 Source:
s3SourceAction = new codepipeline_actions.S3SourceAction({
...
output: source2_Output
)}
Wiring together:
buildAction = new codepipeline_actions.CodeBuildAction({
...
input: sourceOutput,
extraInputs: [source2_Output],
});
Error Log
No error but just missing the artifact content in extraInputs during build.
Environment
- CDK Version : 1.34.1 (build 7b21aa0)
- OS : Mac OS X latest
- Language : typescript
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
aws-cdk/aws-codepipeline-actions module
When you want to have multiple inputs and/or outputs for a Project used in a Pipeline, instead of using the secondarySources and secondaryArtifacts...
Read more >awslabs/aws-cdk - Gitter
I make the CDK bits separate modules of a Gradle project so I'm not mixing concerns such as bundling CDK and related dependencies...
Read more >Two sources (S3 & Github) in codepipeline via CDK
But the filesystem of the fired up instance just sees the content of the first (primary) source. Somehow extraInputs are not visible on...
Read more >how to pass and consume multiple artifacts across CodeBuild ...
Source input (primary source, to get my buildspec.yml); The output of a prior CodeBuild step (a couple of files). I am successful in...
Read more >aws-cdk.aws-codepipeline-actions 1.10.0 - PyPI
Note: when a CodeBuild Action in a Pipeline has more than one output, ... If you want to deploy your Lambda through CodePipeline,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Typescript inline documentation for the property would be nice btw.
@EhsanHerai not sure what you mean by “CDK source code” exactly, but, in general, that environment variable will only exist in CodeBuild. So, you can access it inside the build script of the CodeBuild job.