From 288b79484ce059d19b8f453264082c5b01ed8eaf Mon Sep 17 00:00:00 2001 From: xpk Date: Mon, 29 Aug 2022 11:10:00 +0800 Subject: [PATCH] UPD: updated destroy command --- modules/security_identity_compliance/inspector2/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/security_identity_compliance/inspector2/main.tf b/modules/security_identity_compliance/inspector2/main.tf index 7a7351f..2737461 100644 --- a/modules/security_identity_compliance/inspector2/main.tf +++ b/modules/security_identity_compliance/inspector2/main.tf @@ -6,6 +6,6 @@ resource "null_resource" "cli-inspector2" { provisioner "local-exec" { when = destroy - command = "/bin/bash -c 'aws inspector2 disable'" + command = "/bin/bash -c 'aws inspector2 disable --resource-types \"ECR\"; sleep 30; aws inspector2 disable'" } } \ No newline at end of file