From 60789d680c84ba134578faffe821ef5c1b056dae Mon Sep 17 00:00:00 2001 From: Melanie Sifen Date: Thu, 17 Feb 2022 17:13:48 -0800 Subject: [PATCH] Update deploycfn.md CFN_TEMPLATE Will only check if template is already deployed with completed status. Avoids issue if appmesh-workshop stack was previously deleted. --- content/prerequisites/deploycfn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/prerequisites/deploycfn.md b/content/prerequisites/deploycfn.md index 3025baf..bf3a6e3 100644 --- a/content/prerequisites/deploycfn.md +++ b/content/prerequisites/deploycfn.md @@ -19,7 +19,7 @@ IAM_ROLE=$(curl -s 169.254.169.254/latest/meta-data/iam/info | \ jq -r '.InstanceProfileArn' | cut -d'/' -f2) #Check if the template is already deployed. If not, deploy it -CFN_TEMPLATE=$(aws cloudformation list-stacks | jq -c '.StackSummaries[].StackName | select( . == "appmesh-workshop" )') +CFN_TEMPLATE=$(aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETE | jq -c '.StackSummaries[].StackName | select( . == "appmesh-workshop" )') if [ -z "$CFN_TEMPLATE" ] then