Retrieving AWS EC2 instance metadata - Adaptive Applications - BlueCat Gateway - 22.2.2

Cloud Discovery & Visibility Administration Guide

Locale
English
Product name
BlueCat Gateway
Version
22.2.2
When Cloud Discovery & Visibility (CDV) is installed on AWS EC2 instances, you can use AWS credentials from the EC2 instance to authenticate against AWS for the discovery and visibility of resources. To do so, the EC2 instance must be able to access the instance metadata. If the EC2 instance cannot retrieve the instance metadata, the following error appears:
2022-05-16 04:33:00,372 [CDV] [ERROR] [Test-5] Retrieving the instance metadata is not allowed.

If the instance metadata cannot be accessed, you cannot use the AWS credentials from the EC2 Instance using the Use EC2 instance credentials option.

For more information on configuring the EC2 instance to retrieve instance metadata, see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html in the AWS documentation portal.

After you configure the EC2 instance to retrieve the instance metadata, you check to verify that the instance metadata is accessible from CDV.

To check if the instance metadata is accessible from the CDV UI:
  1. In CDV, click in the top-right corner of the page.
  2. From the drop-down menu, select Recheck EC2 instance credentials.

If the metadata is retrievable, you can select the Use EC2 instance credentials option from the AWS Credentials page.