AWS Cloud Map simplifies Amazon EC2 instance registration

Posted on: Jul 29, 2020

You can now register Amazon EC2 instances in AWS Cloud Map by providing EC2 instance identifiers instead of the IP address when using HTTP namespaces. 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.

Previously, to register Amazon EC2 instances in AWS Cloud Map, you had to provide IP addresses on registration API calls. Now you can simplify registration of Amazon EC2 instances in AWS Cloud Map by submitting the EC2 identifiers instead of IP addresses. AWS Cloud Map will automatically return the private IP addresses of registered Amazon EC2 instances when you make discovery API calls.

To get started, you can use AWS Cloud Map console to register Amazon EC2 instances in services, residing in HTTP namespaces. Alternatively, you can pass AWS_EC2_INSTANCE_ID parameter with the Amazon EC2 instance identifier to AWS Cloud Map’s RegisterInstance API call, using AWS CLI, AWS CloudFormation 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.