File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 IMAGE_UBUNTU_2404_X86_64 : " platform-ingest-elastic-agent-ubuntu-2404-1757120457"
88 IMAGE_UBUNTU_X86_64_FIPS : " platform-ingest-elastic-agent-ubuntu-2204-fips-1757120457"
99 IMAGE_UBUNTU_ARM64_FIPS : " platform-ingest-elastic-agent-ubuntu-2204-fips-aarch64-1757120457"
10+ ASDF_TERRAFORM_VERSION : 1.9.2
1011
1112# This section is used to define the plugins that will be used in the pipeline.
1213# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
2122 - label : Start ESS stack for FIPS integration tests
2223 key : integration-fips-ess
2324 env :
24- ASDF_TERRAFORM_VERSION : 1.9.2
2525 FIPS : " true"
2626 EC_ENDPOINT : " https://api.staging.elastic-gov.com"
2727 ESS_REGION : " us-gov-east-1"
@@ -127,6 +127,13 @@ steps:
127127 - label : ESS FIPS stack cleanup
128128 depends_on :
129129 - integration-tests-ubuntu-fips
130+ env :
131+ FIPS : " true"
132+ EC_ENDPOINT : " https://api.staging.elastic-gov.com"
133+ ESS_REGION : " us-gov-east-1"
134+ TF_VAR_deployment_template_id : " aws-general-purpose"
135+ TF_VAR_integration_server_docker_image : " docker.elastic.co/beats-ci/elastic-agent-cloud-fips:git-${BUILDKITE_COMMIT:0:12}"
136+ TF_VAR_docker_images_name_suffix : " -fips"
130137 allow_dependency_failure : true
131138 command : |
132139 buildkite-agent artifact download "test_infra/ess/**" . --step "integration-fips-ess"
Original file line number Diff line number Diff line change 1212 IMAGE_DEBIAN_12 : " platform-ingest-elastic-agent-debian-12-1757120457"
1313 IMAGE_WIN_2022 : " platform-ingest-elastic-agent-windows-2022-1757120457"
1414 IMAGE_WIN_2025 : " platform-ingest-elastic-agent-windows-2025-1757120457"
15+ ASDF_TERRAFORM_VERSION : 1.9.2
1516
1617# This section is used to define the plugins that will be used in the pipeline.
1718# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
4950 notify :
5051 - github_commit_status :
5152 context : " buildkite/elastic-agent-extended-testing - ESS stack provision"
52- env :
53- ASDF_TERRAFORM_VERSION : 1.9.2
5453 command : .buildkite/scripts/steps/ess_start.sh
5554 retry :
5655 automatic :
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ function ess_up {
4040}
4141
4242function ess_down {
43+ param (
44+ [string ]$EssRegion = " gcp-us-west2"
45+ )
4346 $Workspace = & git rev- parse -- show-toplevel
4447 $TfDir = Join-Path - Path $Workspace - ChildPath " test_infra/ess/"
4548 $stateFilePath = Join-Path - Path $TfDir - ChildPath " terraform.tfstate"
@@ -52,7 +55,8 @@ function ess_down {
5255 try {
5356 Push-Location - Path $TfDir
5457 & terraform init
55- & terraform destroy - auto- approve
58+ & terraform destroy - auto- approve `
59+ - var= " ess_region=$EssRegion "
5660 Pop-Location
5761 } catch {
5862 Write-Output " Error: Failed to destroy ESS stack(it will be auto-deleted later): $_ "
Original file line number Diff line number Diff line change @@ -40,13 +40,15 @@ function ess_up() {
4040}
4141
4242function ess_down() {
43- echo " ~~~ Tearing down the ESS Stack"
43+ echo " ~~~ Tearing down the ESS Stack"
44+ local ESS_REGION=${1:- " gcp-us-west2" }
4445 local WORKSPACE=$( git rev-parse --show-toplevel)
4546 local TF_DIR=" ${WORKSPACE} /test_infra/ess/"
4647
4748 pushd " ${TF_DIR} "
4849 terraform init
49- terraform destroy -auto-approve
50+ terraform destroy -auto-approve \
51+ -var=" ess_region=${ESS_REGION} "
5052 popd
5153}
5254
Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ set -euo pipefail
33
44source .buildkite/scripts/steps/ess.sh
55
6- ess_down || echo " Failed to stop ESS stack" >&2
6+ ESS_REGION=" ${ESS_REGION:- gcp-us-west2} "
7+
8+ ess_down " $ESS_REGION "
You can’t perform that action at this time.
0 commit comments