Fatal error when AWS_EC2_METADATA_DISABLED is true #1027
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/regression
Categorizes issue or PR as related to a regression from a prior release.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
#990 introduced a new log line that tries to get information from the instance metadata service. However, when
AWS_EC2_METADATA_DISABLED
istrue
,GetInstanceIdentityDocument()
returns an fatal error.This variable is commonly set is situations where the AWS CCM is running on an instance in an AWS account different from the account in which it operates/acts.
There are two fixes that come to mind:
GetInstanceIdentityDocument()
orAWS_EC2_METADATA_DISABLED
istrue
I'm not that confident that
AWS_EC2_METADATA_DISABLED
beingtrue
is the only situation in whichGetInstanceIdentityDocument()
fails, so I'm leaning toward option 1.cc @dims
The text was updated successfully, but these errors were encountered: