We store persistent keys an encrypted secrets in our stack configs.
g
gentle-diamond-70147
09/09/2020, 6:39 PM
I'm not very familiar with API Gateway, so I apologize if this isn't 100% relevant, but you can mark resources (such as ApiKey) as "protected" to prevent them from being deleted. This might help in this situation too.
https://www.pulumi.com/docs/intro/concepts/programming-model/#protect
l
loud-battery-37784
09/09/2020, 6:56 PM
Ah, I think @gentle-diamond-70147 is right. I was misunderstanding. We have external non-pulumi generated keys we keep in the config. Your
customer1ApiKey
should be fine the way you have it there as it’ll be consistent from run to run stored in the Pulumi state.
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.