https://pulumi.com logo
#general
Title
# general
c

creamy-knife-93354

01/29/2024, 1:03 PM
Hey! I have a component resource that holds a keypair. Currently, however, this gets regenerated on every stack update. Is there a trick for only generating it only once for every stack?
i

icy-controller-6092

01/29/2024, 1:53 PM
you can write a dynamic provider so that the keys generated on construction are stored in your stacks state
c

creamy-knife-93354

01/29/2024, 1:54 PM
Seems I'm out of luck there 😞
i

icy-controller-6092

01/29/2024, 2:03 PM
you might be able to bend
local.Command
to your will