You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an S3 backend is initialized with skip_metadata_api_check=true, but a provider wants skip_metadata_api_check=false it will fail with EC2 IMDS access disabled via AWS_EC2_METADATA_DISABLED env var.
When the backend is initialized and sets the AWS_EC2_METADATA_DISABLED it sticks around and interferes with the provider's initialization of the SDK client.
skip_metadata_api_check currently only handles the true case, and a false value is ignored, therefore using the value of AWS_EC2_METADATA_DISABLED if set. skip_metadata_api_check should be updated so that false is treated as an actual state, using a nullable-boolean.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
From bug report:
skip_metadata_api_check
currently only handles thetrue
case, and afalse
value is ignored, therefore using the value ofAWS_EC2_METADATA_DISABLED
if set.skip_metadata_api_check
should be updated so thatfalse
is treated as an actual state, using a nullable-boolean.Reference: hashicorp/aws-sdk-go-base#240
The text was updated successfully, but these errors were encountered: