pulumi-aws
pulumi-aws copied to clipboard
Unexpected Input of Type GetPolicyResult when using GetPolicy on an AWS Permissions Boundary
Hello!
- 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)
Issue details
When attempting to retrieve an AWS permissions boundary, via the GetPolicy function, the following error occurs:
ValueError: unexpected input of type GetPolicyResult
Steps to reproduce
- Create a permissions boundary in AWS
- Retrieve the permissions boundary like:
import pulumi_aws as aws
pb = aws.iam.get_policy(name="<name_of_permissions_boundary>")
Expected: Since the permissions boundary is located under Policies
in AWS with an ARN like arn:aws:iam::<account>:policy/
, I expected to be able to retrieve it like a normal policy.
Actual: The following error occurs: ValueError: unexpected input of type GetPolicyResult
Could you provide the full stacktrace please?