Closed ktulhax closed 2 months ago
@ktulhax What you have described is as-designed. As an SOP, SF persists the manifests as passed in so the deployment can be replicated. In your case, you deployed a module that has a reference to an env parameter (that manifest is persisted), then removed the module from the manifest and unset the env parameter. Now SF is trying to compare your new submission to what is persisted (to determine that the module needs to be destroyed) and cannot resolved the env parameter.
This is not a bug, but perhaps you can submit a feature request so we can evaluate the ramifications of persisting env parameters.
In agreement here, not sure this behaviour should be changed unless there's some compelling use case that warrants it.
Describe the bug
The following error occurs in case if module that uses environment variable was deleted and enviroment variable was unset
seedfarmer.errors.seedfarmer_errors.InvalidManifestError: The environment variable (TEST_VARIABLE) is not available
To Reproduce Steps to reproduce the behavior:
TEST_VARIABLE
export TEST_VARIABLE="some_value"
seedfarmer apply
unset TEST_VARIABLE
and delete the module from yamlseedfarmer apply
againExpected behavior It was expected that seedfarmer will remember the values of yaml parameters on AWS if they were provided via environment variables