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

billions-forest-38488

02/28/2020, 1:17 PM
Hi, quick question regarding S3 bucket creation. I've been creating/destroying the same stack frequently... is there a way when creating a bucket it adds a random string to the end, like cloudformation does? I suppose I could add a random string to the config each time, but was wondering if there was a built-in for this? Thanks,
I think I just need to use
bucket_prefix
instead of
bucket
g

gentle-diamond-70147

02/28/2020, 4:25 PM
If you omit
bucket
, Pulumi will do this for you automatically and use the logical name that you provide as the bucket prefix.
Pulumi's default behavior is to add a random suffix to all resources.
b

billions-forest-38488

02/28/2020, 5:52 PM
Nice one ^ thanks
2 Views