Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying runOrder and roleArn for CodePipeline Actions #686

Closed
lusentis opened this issue Sep 10, 2018 · 2 comments
Closed

Allow specifying runOrder and roleArn for CodePipeline Actions #686

lusentis opened this issue Sep 10, 2018 · 2 comments
Assignees

Comments

@lusentis
Copy link
Contributor

lusentis commented Sep 10, 2018

Hello,
I was reading #265 and #642 to figure out what's the current support for CodePipeline, CodeBuild etc...

I have understood that:

I have some time that I could spend on implementing these two points, as they would be really useful for a SAM project I'm porting to CDK. Let me know if I can help and submit a PR.

Thanks! 🎉

@lusentis lusentis changed the title Allow specifying runOrder and roleArn to CodePipeline Actions Allow specifying runOrder and roleArn for CodePipeline Actions Sep 10, 2018
@skinny85
Copy link
Contributor

Hi Simone,

thanks for opening the issue! Yes, we are aware of these shortcomings, and plan to fix both before CDK hits 1.0.

For runOrder, right now, it's actually a public property of each Action - so, you could do something like:

const sourceAction  = new codecommit.PipelineSource(this, 'CodeCommit', {
    stage: sourceStage,
    artifactName: 'Source',
    repository: myCodeCommitRepository,
});
sourceAction.runOrder = 13; // default is 1

However, that's just a temporary stopgap, and long term we will make runOder a property that every Action has. I'll try to submit a PR shortly.

As for the cross-account CodePipelines - we actually have a an issue for general support for cross-account resources (#49). Until we have more info there, we're holding off on supporting the roleArn property of Action. Hopefully, we will be able to come up with a design that will hide a lot of the complexity that's currently involved in creating a cross-account CodePipeline. Stay tuned!

@lusentis
Copy link
Contributor Author

Great, thanks for the hint on runOrder!
I'll follow #49 then. I'll be the first one to test new suff there 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants