AWS Cloud Map simplifies service discovery with optional parameters

Posted on: Oct 9, 2020

You can now discover endpoints registered in AWS Cloud Map with optional parameters that filter the returned results only when there is a matching custom attribute. AWS Cloud Map is a cloud resource discovery service. Using AWS Cloud Map, you can define custom names for your application resources, such as Amazon EC2 instances, Amazon ECS tasks, Amazon S3 buckets, or any other cloud resource. Your application can then discover the location and metadata of cloud resources associated with these custom names via AWS SDK or by making authenticated API calls.

Optional parameters enhance the service discovery experience by providing a way to filter down the returned set of endpoints only when there are endpoints with matching custom attributes. If there is no match, AWS Cloud Map ignores optional parameters and returns the full set of endpoints. For example, you can call discover-instances API with an optional parameter to discover your ECS tasks that are running in us-east-1a Availability Zone. If there are such tasks registered with your service, AWS Cloud Map will return their IP addresses, along with metadata. In case there are no tasks running in this particular Availability Zone, AWS Cloud Map will return all the tasks registered with your service, running in other Availability Zones.  

To get started, you can call AWS Cloud Map discover-instances API and add optional parameters to your API calls, using AWS CLI or AWS SDK. 

To learn more about AWS Cloud Map, please refer to the product page or documentation. To see all of the Regions where AWS Cloud Map is available, see the AWS Region table.