From 7f795737dad9f240c8b430c71010c100a1ccfd10 Mon Sep 17 00:00:00 2001 From: Mike Pond <32133001+P0NDER0SA@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:21:16 -0400 Subject: [PATCH] Update terragrunt_destroy_environment.yml (#1552) commenting out the quicksight portion because it has been causing too many problems --- .../terragrunt_destroy_environment.yml | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/terragrunt_destroy_environment.yml b/.github/workflows/terragrunt_destroy_environment.yml index 614d3b8e0..490d8316a 100644 --- a/.github/workflows/terragrunt_destroy_environment.yml +++ b/.github/workflows/terragrunt_destroy_environment.yml @@ -221,45 +221,45 @@ jobs: cd env/dev/lambda-google-cidr terragrunt destroy --var-file /var/tmp/dev.tfvars --terragrunt-non-interactive -auto-approve - terragrunt-destroy-quicksight: - if: | - always() && - - !contains(needs.*.result, 'cancelled') - runs-on: ubuntu-latest - continue-on-error: true - needs: [terragrunt-destroy-newrelic,terragrunt-destroy-lambda-google-cidr,terragrunt-destroy-sns_to_sqs_sms_callbacks,terragrunt-destroy-pinpoint_to_sqs_sms_callbacks,terragrunt-destroy-system_status,terragrunt-destroy-system_status_static_site,terragrunt-destroy-ses_to_sqs_email_callbacks] - - steps: - - name: Checkout - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + # terragrunt-destroy-quicksight: + # if: | + # always() && + + # !contains(needs.*.result, 'cancelled') + # runs-on: ubuntu-latest + # continue-on-error: true + # needs: [terragrunt-destroy-newrelic,terragrunt-destroy-lambda-google-cidr,terragrunt-destroy-sns_to_sqs_sms_callbacks,terragrunt-destroy-pinpoint_to_sqs_sms_callbacks,terragrunt-destroy-system_status,terragrunt-destroy-system_status_static_site,terragrunt-destroy-ses_to_sqs_email_callbacks] + + # steps: + # - name: Checkout + # uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - name: setup-terraform - uses: ./.github/actions/setup-terraform - with: - role_to_assume: arn:aws:iam::800095993820:role/notification-terraform-apply - role_session_name: NotifyTerraformDestroy - - - name: Install 1Pass CLI - run: | - curl -o 1pass.deb https://downloads.1password.com/linux/debian/amd64/stable/1password-cli-amd64-latest.deb - sudo dpkg -i 1pass.deb - - - name: terragrunt destroy vpc connection - continue-on-error: true - run: | - aws quicksight delete-vpc-connection --aws-account-id 800095993820 --vpc-connection-id $(aws quicksight list-vpc-connections --aws-account-id 800095993820 --query 'VPCConnectionSummaries[].VPCConnectionId' --output text) || true - - - name: update account settings - continue-on-error: true - run: | - aws quicksight update-account-settings --aws-account-id 800095993820 --default-namespace default --no-termination-protection-enabled - - - name: terragrunt destroy quicksight - run: | - op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - Dev"/notesPlain > /var/tmp/dev.tfvars - cd env/dev/quicksight - terragrunt destroy --var-file /var/tmp/dev.tfvars --terragrunt-non-interactive -auto-approve + # - name: setup-terraform + # uses: ./.github/actions/setup-terraform + # with: + # role_to_assume: arn:aws:iam::800095993820:role/notification-terraform-apply + # role_session_name: NotifyTerraformDestroy + + # - name: Install 1Pass CLI + # run: | + # curl -o 1pass.deb https://downloads.1password.com/linux/debian/amd64/stable/1password-cli-amd64-latest.deb + # sudo dpkg -i 1pass.deb + + # - name: terragrunt destroy vpc connection + # continue-on-error: true + # run: | + # aws quicksight delete-vpc-connection --aws-account-id 800095993820 --vpc-connection-id $(aws quicksight list-vpc-connections --aws-account-id 800095993820 --query 'VPCConnectionSummaries[].VPCConnectionId' --output text) || true + + # - name: update account settings + # continue-on-error: true + # run: | + # aws quicksight update-account-settings --aws-account-id 800095993820 --default-namespace default --no-termination-protection-enabled + + # - name: terragrunt destroy quicksight + # run: | + # op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - Dev"/notesPlain > /var/tmp/dev.tfvars + # cd env/dev/quicksight + # terragrunt destroy --var-file /var/tmp/dev.tfvars --terragrunt-non-interactive -auto-approve terragrunt-destroy-database-tools: @@ -268,7 +268,7 @@ jobs: !contains(needs.*.result, 'cancelled') runs-on: ubuntu-latest - needs: [terragrunt-destroy-newrelic,terragrunt-destroy-quicksight,terragrunt-destroy-lambda-google-cidr,terragrunt-destroy-sns_to_sqs_sms_callbacks,terragrunt-destroy-pinpoint_to_sqs_sms_callbacks,terragrunt-destroy-system_status,terragrunt-destroy-system_status_static_site,terragrunt-destroy-ses_to_sqs_email_callbacks] + needs: [terragrunt-destroy-newrelic,terragrunt-destroy-lambda-google-cidr,terragrunt-destroy-sns_to_sqs_sms_callbacks,terragrunt-destroy-pinpoint_to_sqs_sms_callbacks,terragrunt-destroy-system_status,terragrunt-destroy-system_status_static_site,terragrunt-destroy-ses_to_sqs_email_callbacks] steps: - name: Checkout @@ -687,4 +687,4 @@ jobs: scripts/cleanupSecurityGroups.sh op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - Dev"/notesPlain > /var/tmp/dev.tfvars cd env/dev/common - terragrunt destroy --var-file /var/tmp/dev.tfvars --terragrunt-non-interactive -auto-approve \ No newline at end of file + terragrunt destroy --var-file /var/tmp/dev.tfvars --terragrunt-non-interactive -auto-approve