Created
November 4, 2021 21:48
-
-
Save jim80net/d2a286d9f4e48969b290df2c6a705459 to your computer and use it in GitHub Desktop.
Empty a AWS Cloud Map Namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(aws servicediscovery list-services --filter Name=NAMESPACE_ID,Values=[ns-MYNAMESPACEIDHERE],Condition=EQ --query "Services[].Id" --output text) ; do aws servicediscovery delete-service --id $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment