dry-controller-79976
05/20/2024, 7:46 PMAssertionError: Unexpected type; expected a value of type `<class 'str'>` but got a value of type `<class 'dict'>` at resource `iam-role-example`, property `policies.0.policyDocument`: {'version': '2012-10-17', 'statement': [{'resource': '*', 'effect': 'Allow', 'action': ['example:Permission']}]}
The code is based directly off examples from: https://www.pulumi.com/registry/packages/aws-native/api-docs/iam/role/ and I've tried it with and without json.dumps
on the policy_document. Currently I am in a broken state where I have to delete the Pulumi state to get the pulumi up
command to no longer crash.
Is there a better reference for how to define a role with a policy, or should I just switch to the "AWS Classic" provider?