https://pulumi.com logo
Title
f

full-analyst-32960

10/05/2022, 5:28 PM
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

stocky-restaurant-98004

10/05/2022, 5:29 PM
It's random so that you can deploy different stacks into the same region/account.
f

full-analyst-32960

10/05/2022, 5:31 PM
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

billowy-army-68599

10/05/2022, 5:35 PM
you can override it, but for policies it’s not recommended because of the eventual consistency of IAM