Skip to content

Instantly share code, notes, and snippets.

@jim80net
Created November 4, 2021 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jim80net/d2a286d9f4e48969b290df2c6a705459 to your computer and use it in GitHub Desktop.
Save jim80net/d2a286d9f4e48969b290df2c6a705459 to your computer and use it in GitHub Desktop.
Empty a AWS Cloud Map Namespace
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