pulumi-aws icon indicating copy to clipboard operation
pulumi-aws copied to clipboard

Unexpected Input of Type GetPolicyResult when using GetPolicy on an AWS Permissions Boundary

Open nmelche opened this issue 2 years ago • 1 comments

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

  1. Create a permissions boundary in AWS
  2. 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

nmelche avatar Mar 16 '22 13:03 nmelche

Could you provide the full stacktrace please?

viveklak avatar Mar 22 '22 00:03 viveklak