Skip to content

AWS metadata is assumed when running in the cloud #10

@TobyHFerguson

Description

@TobyHFerguson

Somewhere the system attempts to grab instance metadata using the AWS metadata endpoints. This doesn't work when running on GCP :-(

This has no significant behavior on the overall demo - its nothing but a minor annoyance and an error in the logs.

The error looks like this:

2020-04-20 19:01:04.674 WARN 1 --- [ main] com.amazonaws.util.EC2MetadataUtils : Unable to retrieve the requested metadata (/latest/meta-data/instance-id). The requested metadata is not found at http://169.254.169.25 4/latest/meta-data/instance-id server_1 | server_1 | com.amazonaws.SdkClientException: The requested metadata is not found at http://169.254.169.254/latest/meta-data/instance-id server_1 | at com.amazonaws.internal.EC2CredentialsUtils.readResource(EC2CredentialsUtils.java:122) ~[aws-java-sdk-core-1.11.415.jar!/:na] server_1 | at com.amazonaws.internal.EC2CredentialsUtils.readResource(EC2CredentialsUtils.java:82) ~[aws-java-sdk-core-1.11.415.jar!/:na]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions