https://pulumi.com logo
#aws
Title
# aws
b

bland-pharmacist-96854

08/10/2023, 8:57 AM
Hello, Looking for ideas about how to calculate AWS policy size to see if it will fail at deployment time, trying to anticipate to this error:
LimitExceeded: Maximum policy size of 10240 bytes exceeded for role
s

stocky-restaurant-98004

08/11/2023, 5:08 PM
Are you applying the policy directly to the role or attaching it? Try using
aws.iam.RolePolicyAttachment
instead of
aws.iam.RolePolicy
. Also, look at whether an AWS-managed policy might fit your use case.