From 2303ca619983680eaa7ff13a8a7f92bce2c7ac25 Mon Sep 17 00:00:00 2001 From: Hare Sudhan Muthusamy Date: Mon, 23 Jan 2023 03:52:51 -0500 Subject: [PATCH] fixing atomic yaml --- atomics/T1562.008/T1562.008.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atomics/T1562.008/T1562.008.yaml b/atomics/T1562.008/T1562.008.yaml index a88031de..24adc1c7 100644 --- a/atomics/T1562.008/T1562.008.yaml +++ b/atomics/T1562.008/T1562.008.yaml @@ -35,6 +35,8 @@ atomic_tests: echo Please install the aws-cli and configure your AWS defult profile using: aws configure - description: | Check if the dependency resources are already present. + prereq_command: | + if [ -f $PathToAtomicsFolder/T1562.008/src/T1562.008-1/terraform.tfstate ]; then exit 0; else exit 1; fi; get_prereq_command: | cd $PathToAtomicsFolder/T1562.008/src/T1562.008-1/ terraform init @@ -95,6 +97,8 @@ atomic_tests: echo Please install the terraform and configure your Azure defult profile - description: | Create dependency resources using terraform + prereq_command: | + if [ -f $PathToAtomicsFolder/T1562.008/src/T1562.008-2/terraform.tfstate ]; then exit 0; else exit 1; fi; get_prereq_command: | cd $PathToAtomicsFolder/T1562.008/src/T1562.008-2/ terraform init