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.
In CDV, click in the top-right corner of the page.
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.