Skip to content

Commit

Permalink
destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 committed Aug 21, 2024
1 parent b893e34 commit e98cbf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terragrunt_destroy_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
op read op://4eyyuwddp6w4vxlabrr2i2duxm/"TFVars - Dev"/notesPlain > /var/tmp/dev.tfvars
cd env/dev/rds
terragrunt destroy --var-file /var/tmp/dev.tfvars --terragrunt-non-interactive -auto-approve
aws rds delete-db-cluster-snapshot --db-cluster-snapshot-identifier $(aws rds describe-db-cluster-snapshots --query 'DBClusterSnapshots[].DBClusterSnapshotIdentifier' --output text)
terragrunt-destroy-performance-test:
if: |
Expand Down
2 changes: 1 addition & 1 deletion aws/rds/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ resource "aws_rds_cluster" "notification-canada-ca" {
db_subnet_group_name = aws_db_subnet_group.notification-canada-ca.name

snapshot_identifier = var.recovery == true ? var.rds_snapshot_identifier : null

#tfsec:ignore:AWS051 - database is encrypted without a custom key and that's fine
storage_encrypted = true
deletion_protection = var.enable_delete_protection
Expand Down
2 changes: 1 addition & 1 deletion aws/rds/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ variable "recovery" {
variable "rds_snapshot_identifier" {
type = string
description = "The snapshot identifier to recover from."
}
}

0 comments on commit e98cbf1

Please sign in to comment.