https://pulumi.com logo
Title
f

fresh-furniture-72056

01/25/2022, 8:37 AM
Hi there, I am using pulumi to deploy a few cloud run based services. I was wondering if there is a way to control the exact service name/id that pulumi creates. It looks like given a service name
new cloudrun.Service('my-service-name', {})
pulumi adds a 7 character long randomized suffix to the service name
my-service-name-abcdef
. Is there a way to override this and have the name/id be exactly what we specify?
q

quiet-wolf-18467

01/25/2022, 11:34 AM
Yeah, you can pass it in via metadata.
new cloudrun.Serrvice("my-service-name", { metadata: { name: "my-service-name" } });
f

fresh-furniture-72056

01/25/2022, 12:31 PM
thank you 👍