Skip to content

fix pivot role ram policy#1876

Merged
petrkalos merged 1 commit intomainfrom
fix/pivot-ram-policy
Oct 14, 2025
Merged

fix pivot role ram policy#1876
petrkalos merged 1 commit intomainfrom
fix/pivot-ram-policy

Conversation

@petrkalos
Copy link
Contributor

@petrkalos petrkalos commented Oct 14, 2025

Feature or Bugfix

  • Bugfix

Detail

In #1853 the permission was restricted only to the requester account which is incorrect as we need the target account.
Given that pivotRole must support multiple target data sources this cannot be tied specifically to an account.

For the record this was causing integration tests to fail with the root cause...

[ERROR] Failed to accept RAM invitation arn:aws:ram:eu-central-1:DATASET_ACCOUNT:resource-share-invitation/*** due to An error occurred (AccessDeniedException) when calling the AcceptResourceShareInvitation operation: User: arn:aws:sts::CONSUMER_ACCOUNT:assumed-role/dataallPivotRole-cdk-eu-central-1/dataallPivotRole-cdk-eu-central-1 is not authorized to perform: ram:AcceptResourceShareInvitation on resource: arn:aws:ram:eu-central-1:DATASET_ACCOUNT:resource-share-invitation/*** because no identity-based policy allows the ram:AcceptResourceShareInvitation action

@petrkalos petrkalos force-pushed the fix/pivot-ram-policy branch from 36828d9 to a2e0594 Compare October 14, 2025 10:45
@petrkalos petrkalos merged commit f033006 into main Oct 14, 2025
13 checks passed
@petrkalos petrkalos deleted the fix/pivot-ram-policy branch October 14, 2025 11:40
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 this pull request may close these issues.

1 participant

Comments