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

codebuild unable to use imported role #1778

Closed
jesterhazy opened this issue Feb 16, 2019 · 1 comment · Fixed by #1781
Closed

codebuild unable to use imported role #1778

jesterhazy opened this issue Feb 16, 2019 · 1 comment · Fixed by #1781

Comments

@jesterhazy
Copy link
Contributor

codebuild.CommonProjectProps requires an iam.Role instead of iam.IRole, which means you cannot use an imported role.

Looks like exactly the same issue as the Lambda one that was fixed last month (#1506).

@jesterhazy
Copy link
Contributor Author

jesterhazy commented Feb 16, 2019

the workaround mentioned in #1506 seems to work for codebuild too:

const projectProps = {
    ... other props ...
    role: theImportedIRole as any
}

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

Successfully merging a pull request may close this issue.

1 participant