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

Replace Terraform with Pulumi to stop eliding iam.PolicyAttachment docs #4882

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

flostadler
Copy link
Contributor

@flostadler flostadler commented Dec 4, 2024

The iam.PolicyAttachment resource assumes exclusive management of IAM policies. Across the entire AWS account, all of the users/roles/groups to which a single policy is attached must be declared by a single iam.PolicyAttachment resource. This means that even any users/roles/groups that have the attached policy via any other mechanism (including other Pulumi resources) will have that attached policy revoked by this resource when it's deleted.

This is quite surprising to users, especially because there's no mention of it in the Pulumi docs.

The warnings from the upstream provider were not carried into Pulumi docs because they included Terraform and were elided. This fixes it.

Fixes #4872
Relates to pulumi/pulumi-terraform-bridge#2251

@flostadler flostadler requested review from t0yv0 and a team December 4, 2024 14:39
@flostadler flostadler self-assigned this Dec 4, 2024
@flostadler flostadler requested a review from corymhall December 4, 2024 14:43
@flostadler flostadler enabled auto-merge (squash) December 4, 2024 15:06
Copy link

github-actions bot commented Dec 4, 2024

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@flostadler flostadler merged commit 1fde217 into master Dec 4, 2024
33 checks passed
@flostadler flostadler deleted the flostadler/dont-elide-iam.PolicyAttachment branch December 4, 2024 16:38
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (05c63ab) to head (f613c7f).
Report is 2 commits behind head on master.

Additional details and impacted files
@@      Coverage Diff       @@
##   master   #4882   +/-   ##
==============================
==============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v6.64.0.

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.

iam.PolicyAttachment missing warnings about exclusive attachments
4 participants