question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Artifacts via extraInputs on CodeBuildAction dont show up

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
swyp-decommented, Apr 24, 2020

Typescript inline documentation for the property would be nice btw.

0reactions
skinny85commented, Feb 21, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found