File tree Expand file tree Collapse file tree 5 files changed +21
-7
lines changed Expand file tree Collapse file tree 5 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 7
7
IMAGE_UBUNTU_2404_X86_64 : " platform-ingest-elastic-agent-ubuntu-2404-1757120457"
8
8
IMAGE_UBUNTU_X86_64_FIPS : " platform-ingest-elastic-agent-ubuntu-2204-fips-1757120457"
9
9
IMAGE_UBUNTU_ARM64_FIPS : " platform-ingest-elastic-agent-ubuntu-2204-fips-aarch64-1757120457"
10
+ ASDF_TERRAFORM_VERSION : 1.9.2
10
11
11
12
# This section is used to define the plugins that will be used in the pipeline.
12
13
# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
21
22
- label : Start ESS stack for FIPS integration tests
22
23
key : integration-fips-ess
23
24
env :
24
- ASDF_TERRAFORM_VERSION : 1.9.2
25
25
FIPS : " true"
26
26
EC_ENDPOINT : " https://api.staging.elastic-gov.com"
27
27
ESS_REGION : " us-gov-east-1"
@@ -127,6 +127,13 @@ steps:
127
127
- label : ESS FIPS stack cleanup
128
128
depends_on :
129
129
- 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"
130
137
allow_dependency_failure : true
131
138
command : |
132
139
buildkite-agent artifact download "test_infra/ess/**" . --step "integration-fips-ess"
Original file line number Diff line number Diff line change 12
12
IMAGE_DEBIAN_12 : " platform-ingest-elastic-agent-debian-12-1757120457"
13
13
IMAGE_WIN_2022 : " platform-ingest-elastic-agent-windows-2022-1757120457"
14
14
IMAGE_WIN_2025 : " platform-ingest-elastic-agent-windows-2025-1757120457"
15
+ ASDF_TERRAFORM_VERSION : 1.9.2
15
16
16
17
# This section is used to define the plugins that will be used in the pipeline.
17
18
# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
74
75
notify :
75
76
- github_commit_status :
76
77
context : " buildkite/elastic-agent-extended-testing - ESS stack provision"
77
- env :
78
- ASDF_TERRAFORM_VERSION : 1.9.2
79
78
command : .buildkite/scripts/steps/ess_start.sh
80
79
retry :
81
80
automatic :
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ function ess_up {
40
40
}
41
41
42
42
function ess_down {
43
+ param (
44
+ [string ]$EssRegion = " gcp-us-west2"
45
+ )
43
46
$Workspace = & git rev- parse -- show-toplevel
44
47
$TfDir = Join-Path - Path $Workspace - ChildPath " test_infra/ess/"
45
48
$stateFilePath = Join-Path - Path $TfDir - ChildPath " terraform.tfstate"
@@ -52,7 +55,8 @@ function ess_down {
52
55
try {
53
56
Push-Location - Path $TfDir
54
57
& terraform init
55
- & terraform destroy - auto- approve
58
+ & terraform destroy - auto- approve `
59
+ - var= " ess_region=$EssRegion "
56
60
Pop-Location
57
61
} catch {
58
62
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() {
40
40
}
41
41
42
42
function ess_down() {
43
- echo " ~~~ Tearing down the ESS Stack"
43
+ echo " ~~~ Tearing down the ESS Stack"
44
+ local ESS_REGION=${1:- " gcp-us-west2" }
44
45
local WORKSPACE=$( git rev-parse --show-toplevel)
45
46
local TF_DIR=" ${WORKSPACE} /test_infra/ess/"
46
47
47
48
pushd " ${TF_DIR} "
48
49
terraform init
49
- terraform destroy -auto-approve
50
+ terraform destroy -auto-approve \
51
+ -var=" ess_region=${ESS_REGION} "
50
52
popd
51
53
}
52
54
Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ set -euo pipefail
3
3
4
4
source .buildkite/scripts/steps/ess.sh
5
5
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