[8.18] (backport #9832) fix: ESS stack clean up steps#9853
Merged
pkoutsovasilis merged 2 commits into8.18from Sep 10, 2025
Merged
[8.18] (backport #9832) fix: ESS stack clean up steps#9853pkoutsovasilis merged 2 commits into8.18from
pkoutsovasilis merged 2 commits into8.18from
Conversation
* fix: specify terraform env var everywhere * fix: proper env vars for ESS Stack clean up * fix: error when terraform fails to destroy ESS stack * fix: pass ess_region in terraform destroy (cherry picked from commit 6918b7b) # Conflicts: # .buildkite/bk.integration-fips.pipeline.yml # .buildkite/scripts/steps/ess.ps1
Contributor
Author
|
Cherry-pick of 6918b7b has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
8 tasks
v1v
approved these changes
Sep 10, 2025
|
Contributor
💚 Build Succeeded
|
pkoutsovasilis
approved these changes
Sep 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_VERSIONdefinition to the global pipeline environment so it is available to all steps, ensuringasdfprovides the requiredterraformbinary.ess_regionvariable explicitly toterraform destroyin 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
terraformbinaries, 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/fragmentsusing 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.