https://pulumi.com logo
Title
b

bland-pharmacist-96854

02/08/2023, 3:11 PM
Hi, Is there any way of adding the project name as a prefix for pulumi resource names? This will be useful to easily identify from the AWS console what project pertains to some resource.
s

salmon-account-74572

02/08/2023, 3:21 PM
I’m not aware of a way to do that without also giving up resource auto-naming. I typically use tags to help provide that sort of functionality, but I understand that’s not necessarily an ideal solution.
b

bland-pharmacist-96854

02/08/2023, 3:22 PM
tags shoudl do the work ahaha thanks
then, is there any suggestion regarding resource naming? maybe, the best is to name the resource as the variable?
s

salmon-account-74572

02/08/2023, 3:25 PM
That’s a pretty common approach. You could also use something like
fmt.Sprintf
(sorry, I tend to use Go most of the time) to build some sort of prefix or such into the resource name.
l

little-cartoon-10569

02/08/2023, 8:34 PM
Resource autonaming supports the namePrefix property on many resources.
But tags is a good way to go. This is why AWS classic had defaultTags added to the provider.