Skip to content

fix(iam): immutable role cannot be used as a construct#6920

Merged
mergify[bot] merged 3 commits intomasterfrom
benisrae/fix/immutable-role-construct
Mar 23, 2020
Merged

fix(iam): immutable role cannot be used as a construct#6920
mergify[bot] merged 3 commits intomasterfrom
benisrae/fix/immutable-role-construct

Conversation

@eladb
Copy link
Copy Markdown
Contributor

@eladb eladb commented Mar 21, 2020

Due to a change in how ConstructNodes are associated with Constructs in 1.29.0, ImmutableRole's "impersonation to a construct" -- by reflecting the construct's node property -- no longer works.

This change simply turns ImmutableRole into a real construct by extending the Construct base class.

This fixes the use case in #6885


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Due to a change in how `ConstructNode`s are associated with `Construct`s in 1.29.0, `ImmutableRole`'s "impersonation to a construct" -- by reflecting the construct's `node` property -- no longer works.

This change simply turns `ImmutableRole` into a real construct by extending the `Construct` base class.

This fixes the use case in #6885
@eladb eladb requested review from rix0rrr and skinny85 March 21, 2020 15:22
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 21, 2020
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 7c9cb6d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@eladb eladb changed the title fix(dam): immutable role cannot be used as a construct fix(iam): immutable role cannot be used as a construct Mar 21, 2020
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: b8e3da4
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@eladb eladb requested a review from rix0rrr March 23, 2020 14:20
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 9e08de8
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 23, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 56be032 into master Mar 23, 2020
@mergify mergify bot deleted the benisrae/fix/immutable-role-construct branch March 23, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants