Amazon web services – Alternate for EC2MetadataUtils
In our code, to get the ec2 instance's region we are using EC2MetadataUtils.getEC2InstanceRegion(), and we just realized we must not use EC2MetadataUtils because it is an internal API that is subject to change. Note: this is an internal API subject…