Skip to content

Commit

Permalink
Update terragrunt_destroy_environment.yml (#1552)
Browse files Browse the repository at this point in the history
commenting out the quicksight portion because it has been causing too many problems
  • Loading branch information
P0NDER0SA authored Sep 23, 2024
1 parent 8b172aa commit 7f79573
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/terragrunt_destroy_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
terragrunt destroy --var-file /var/tmp/dev.tfvars --terragrunt-non-interactive -auto-approve

0 comments on commit 7f79573

Please sign in to comment.