Skip to content

fix(iam): PrincipalWithConditions.addCondition does not work#15414

Merged
mergify[bot] merged 6 commits intoaws:masterfrom
TikiTDO:patch-1
Jul 19, 2021
Merged

fix(iam): PrincipalWithConditions.addCondition does not work#15414
mergify[bot] merged 6 commits intoaws:masterfrom
TikiTDO:patch-1

Conversation

@TikiTDO
Copy link
Copy Markdown
Contributor

@TikiTDO TikiTDO commented Jul 4, 2021

In PrincipalWithConditions the conditions parameter uses the getter syntax to return a new conditions object each time, which means the addCondition call will effectively throw away any conditions being added.

This PR ensures the conditions added with addCondition show up in the resulting principal.


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

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 4, 2021

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 4, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@TikiTDO TikiTDO changed the title [aws-iam] PrincipalWithConditions.addCondition not saving new conditions fix(aws-iam): PrincipalWithConditions.addCondition not saving new conditions Jul 4, 2021
@TikiTDO TikiTDO changed the title fix(aws-iam): PrincipalWithConditions.addCondition not saving new conditions fix(aws-iam): update PrincipalWithConditions.addCondition to save the condition being added Jul 6, 2021
@TikiTDO TikiTDO changed the title fix(aws-iam): update PrincipalWithConditions.addCondition to save the condition being added fix(iam): update PrincipalWithConditions.addCondition to save the condition being added Jul 6, 2021
@peterwoodworth peterwoodworth added the @aws-cdk/aws-iam Related to AWS Identity and Access Management label Jul 6, 2021
@rix0rrr rix0rrr changed the title fix(iam): update PrincipalWithConditions.addCondition to save the condition being added fix(iam): PrincipalWithConditions.addCondition does not work Jul 8, 2021
rix0rrr
rix0rrr previously approved these changes Jul 8, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 8, 2021

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 dismissed rix0rrr’s stale review July 8, 2021 13:43

Pull request has been modified.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 19, 2021

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

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 476051a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify mergify bot merged commit fdce08c into aws:master Jul 19, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 19, 2021

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

TikiTDO added a commit to TikiTDO/aws-cdk that referenced this pull request Aug 3, 2021
…5414)

In `PrincipalWithConditions` the `conditions` parameter uses the getter syntax to return a new conditions object each time, which means the `addCondition` call will effectively throw away any conditions being added.

This PR ensures the conditions added with `addCondition` show up in the resulting principal.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…5414)

In `PrincipalWithConditions` the `conditions` parameter uses the getter syntax to return a new conditions object each time, which means the `addCondition` call will effectively throw away any conditions being added.

This PR ensures the conditions added with `addCondition` show up in the resulting principal.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-iam Related to AWS Identity and Access Management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants