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?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by