```aws.iam.Policy("policy", description="Descr...
# python
f
Copy code
aws.iam.Policy("policy",
    description="Description",
    policy = json.dumps({ ... })
)
AWS shows this as a “Customer managed” “Permission policy” but the name is “policy-8964f2d”. Pulumi add the stuff after the dash? Is there a way to prevent that? Is the info random or does it represent something?
s
It's random so that you can deploy different stacks into the same region/account.
f
Any way to change it to be something understandable? I’m working in “dev” stack so change it to something like policy-dev?
Some GoogleFu explains this and while the reference is to S3, I assume the autonaming is across the board. Thanks for the response.
b
you can override it, but for policies it’s not recommended because of the eventual consistency of IAM