-
Notifications
You must be signed in to change notification settings - Fork 348
Closed
Milestone
Description
EC2 Instance Metadata V2 support needs a newer version of github.com/aws/aws-sdk-go
.
- https://github.com/aws/aws-sdk-go/releases/tag/v1.25.38
- See "SDK Enhancements"
- docker updated to this version to fix the aws cloudwatch logs driver
- moby/moby: issue #40422 / PR #40474
Tested with release 0.4.0.
~/.ecr/log/ecr-login.log
:
time="2020-06-01T02:09:39Z" level=debug msg="Calling ECR.GetAuthorizationToken" registry=...
time="2020-06-01T02:09:39Z" level=error msg="Error retrieving credentials"
error="
ecr: Failed to get authorization token:
NoCredentialProviders: no valid providers in chain.
Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
"
Making IMDSv2 session tokens optional
fixes it:
AWS_PROFILE=admin-dev aws ec2 modify-instance-metadata-options \
--instance-id <instance-id> \
--http-tokens optional
{
"InstanceId": "i-...",
"InstanceMetadataOptions": {
"State": "pending",
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 64,
"HttpEndpoint": "enabled"
}
}
Notice the hop limit is NOT the default of 1.
Metadata
Metadata
Assignees
Labels
No labels