Skip to content

Instantly share code, notes, and snippets.

@weyderfs
Last active July 7, 2022 21:00
Show Gist options
  • Save weyderfs/bee836a63c2e0d256fda7eb2ee0ee314 to your computer and use it in GitHub Desktop.
Save weyderfs/bee836a63c2e0d256fda7eb2ee0ee314 to your computer and use it in GitHub Desktop.

Revisions

  1. Weyder Ferreira revised this gist Jul 7, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion clear-cf-stacks.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    for i in $(aws cloudformation list-stacks |jq -r '.StackSummaries[] | {StackName} | join(" ")')
    do echo aws cloudformation delete-stack $i #remove echo to delete
    do echo aws cloudformation delete-stack --stack-name $i #remove echo to delete
    done

  2. Weyder Ferreira created this gist Jul 7, 2022.
    6 changes: 6 additions & 0 deletions clear-cf-stacks.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash

    for i in $(aws cloudformation list-stacks |jq -r '.StackSummaries[] | {StackName} | join(" ")')
    do echo aws cloudformation delete-stack $i #remove echo to delete
    done