[9.0] (backport #9832) fix: ESS stack clean up steps #9855
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR fixes issues with ESS stack cleanup in CI by:
ASDF_TERRAFORM_VERSION
definition to the global pipeline environment so it is available to all steps, ensuringasdf
provides the requiredterraform
binary.ess_region
variable explicitly toterraform destroy
in both Bash and PowerShell scripts, since it is required to properly clean up FIPS ESS stacks that do not use the default region specified in Terraform files.Why is it important?
Without these changes, ESS stacks are not be cleaned up correctly after CI runs due to missing
terraform
binaries, unset environment variables, or incorrect region handling. This results in orphaned cloud resources, higher costs, and hitting stack quotas, which can block new CI runs from provisioning fresh environments.Before this PR link. With this PR link.
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
None expected. These changes affect only CI pipelines and cleanup scripts.
How to test this PR locally
Open a draft PR and see that ESS cleanup steps are actually cleaning up the stacks.
Related issues
N/A
This is an automatic backport of pull request #9832 done by Mergify.