How Do You Find the AWS Namespaces?

Problem scenario
For a boto3 program, you want to find the AWS namespaces. What do you do to list the namespaces that are part of your AWS accounts?


You must have the AWS CLI installed. If you need assistance with this, see this posting.

This also assumes that the Linux user has the policy for servicediscovery:ListNamespaces. If you aren't sure, try the solution first. Otherwise your user must be made to allow "servicediscover:ListNamespaces".

Run this command: aws servicediscovery list-namespaces

Leave a comment

Your email address will not be published. Required fields are marked *