sparse-intern-71089
06/19/2020, 1:46 PMwhite-balloon-205
Do I have to check in the produced yaml files after the provisioning process?You will in general need to ensure you persist the stack files (
Pulumi.<stackname>.yaml
) for each stack, as these are where config is stored and shared.
For long lived stacks/branches, it is typical to check these in to source control.
For short-lived stacks (perhaps like feature branch stacks), you could chose to not check them in, and use a combination of pulumi stack init
, pulumi config set
, and pulumi config refresh
from within your feature branch automation to manage the stack config. You can see an example of doing this sort of thing in the Pulumify implementation: https://github.com/pulumi/actions-pulumify/blob/master/infra/pulumify#L82-L131
Is the producedTheimport?encryptkey
encryptedkey
is important if you have any secret config. I am actually not sure off the top of my head whether this gets downloaded by pulumi config refresh
. Ideally it does, in which case the above process would work as is. If it doesn't, then you may need to store this separately. (though if you find that to be the case, please do also open an issue in GitHub - I believe we should be able to support retrieving this from pulumi config refresh
).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.
Powered by