One blocker I've got is that I'm using the deployment instance stack name as a source of uniqueness in my resource names
Why are you not relying on pulumi to autoname things?
which of course doesn't exist unless the pulumi runasync() is called
Can't you use mock stacks for this?
l
little-cartoon-10569
06/21/2022, 10:02 PM
Are you running unit tests (with "mock" stacks) first, before your real-stack integration tests? I prefer the unit-style tests within Pulumi, and then integration-style tests outside Pulumi (using the normal SDKs of the cloud).
d
damp-honey-93158
06/22/2022, 5:40 AM
Not yet - but that seems very appealing... I need to look that up - are there examples you could point me at (I don't care which language, I'll adapt/look). Thank you!
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.