Update snapshot variables during deploy

Hi there,
we have a deployment process that retrieve some keys and update the project variables as one deployment step. In a further deployment step we need to use the updated variables to deploy the helm chart to kubernetes. We have found that the default variable is instead being passed to the helm values.
We tried to use the api to force update the snapshot for the release as part of the deployment, however this did not work.
Is this possible? If not why not?

Hi Rachel,

Thanks for getting in touch!

All of the variables within the snapshot are resolved at the beginning of a deployment, so any further changes won’t be available during that deployment.

If you’re wanting to store variables in one step and then use the variable in a later step, then output variables may be a better option for you.

I hope this helps, please let me know if you have any further questions.