Skip to content

Commit

Permalink
Merge branch 'main' into version_ci_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz authored Mar 31, 2024
2 parents 9125223 + 147ede5 commit f4a2efa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 8 additions & 3 deletions deploy/test-environments/delete_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,14 @@ echo "Failed to delete CloudFormation stacks (${#FAILED_STACKS[@]}):"
printf "%s\n" "${FAILED_STACKS[@]}"

# Delete GCP deployments
PROJECT_NAME=$(gcloud config get-value core/project)
PROJECT_NUMBER=$(gcloud projects list --filter="${PROJECT_NAME}" --format="value(PROJECT_NUMBER)")
./delete_gcp_env.sh "$PROJECT_NAME" "$PROJECT_NUMBER" "${ALL_GCP_DEPLOYMENTS[@]}"
# Check if ALL_GCP_DEPLOYMENTS is empty
if [ ${#ALL_GCP_DEPLOYMENTS[@]} -eq 0 ]; then
echo "No GCP deployments to delete."
else
PROJECT_NAME=$(gcloud config get-value core/project)
PROJECT_NUMBER=$(gcloud projects list --filter="${PROJECT_NAME}" --format="value(PROJECT_NUMBER)")
./delete_gcp_env.sh "$PROJECT_NAME" "$PROJECT_NUMBER" "${ALL_GCP_DEPLOYMENTS[@]}"
fi

# Delete Azure groups
FAILED_AZURE_GROUPS=()
Expand Down
11 changes: 6 additions & 5 deletions deploy/test-environments/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ provider "aws" {

locals {
common_tags = {
division = "${var.division}"
org = "${var.org}"
team = "${var.team}"
project = "${var.project}"
owner = "${var.owner}"
division = "${var.division}"
org = "${var.org}"
team = "${var.team}"
project = "${var.project}"
owner = "${var.owner}"
deployment = "${var.deployment_name}"
}
ec_url = "https://cloud.elastic.co"
ec_headers = {
Expand Down

0 comments on commit f4a2efa

Please sign in to comment.