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

Python docs for RolePolicyAttachment do not work #11450

Closed
t0yv0 opened this issue Apr 15, 2024 · 1 comment
Closed

Python docs for RolePolicyAttachment do not work #11450

t0yv0 opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team resolution/duplicate This issue is a duplicate of another issue
Milestone

Comments

@t0yv0
Copy link
Member

t0yv0 commented Apr 15, 2024

What happened?

https://www.pulumi.com/docs/clouds/aws/guides/iam/#pre-defined-iam-managed-policies

Has a snippet:

role = ...
role_policy_attachment = aws.iam.RolePolicyAttachment('rpa',
    role=role,
    policy_arn=aws.iam.ManagedPolicy.IAMReadOnlyAccess,
)

But the correct snippet is:

role_policy_attachment = aws.iam.RolePolicyAttachment('my-rpa',
    role=role.id,
    policy_arn=aws.iam.ManagedPolicy.IAM_READ_ONLY_ACCESS,
)

Example

See above

Output of pulumi about

N/A

Additional context

N/A

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@t0yv0 t0yv0 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Apr 15, 2024
@t0yv0 t0yv0 transferred this issue from pulumi/pulumi-aws Apr 15, 2024
@toriancrane toriancrane added resolution/duplicate This issue is a duplicate of another issue area/docs Improvements or additions to documentation and removed needs-triage Needs attention from the triage team labels Apr 16, 2024
@toriancrane toriancrane self-assigned this Apr 16, 2024
@toriancrane toriancrane added this to the 0.103 milestone Apr 16, 2024
@toriancrane
Copy link
Contributor

Hey hey @t0yv0 ,

Closing as a duplicate of this issue.

@toriancrane toriancrane closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2024
@sean1588 sean1588 transferred this issue from pulumi/pulumi-hugo May 10, 2024
@github-actions github-actions bot added the needs-triage Needs attention from the triage team label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team resolution/duplicate This issue is a duplicate of another issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants