is the specific resource I’d like to not store / recompute on each reference.
curved-kitchen-24115
02/17/2023, 10:28 PM
I can see how this may not be supported due to causing churn in state.
b
billions-xylophone-85957
02/18/2023, 1:29 PM
you probably can utilise something from
random
with
keepers
set to e.g. current timestamp.
Like, create a
random.RandomUuid
resource (which will be recreated every time the timestamp of the pulumi run changes - which means every
up
) and have your
TailnetKey
either be a child of that UUID or depend on it.
wdyt?
c
curved-kitchen-24115
02/20/2023, 9:36 PM
I'm not familiar with those two packages, but from what you describe I can see how it would work. Thanks for the suggestion!
I actually ended up going a different route; though it's not necessarily what I'll stick to going forward. I ended up making the key reusable and having a longer shelf life. The prior settings had been my preferred production settings; and I was forcing myself to use them in a development context which was unnecessarily painful.
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.