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
curl -fsSL https://raw.github.com/go-to-k/cls3/main/install.sh | sh
Start the CLS3 program and try an operation :
[root@ip-172-31-89-44 tmp]# cls3 --bucketName poc-playground-2
ERR [resource -] operation error S3: ListBuckets, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, not found, Signing
Current workaround
This seems to be an issue with missing updates on Go libraries, as described here
go get github.com/aws/aws-sdk-go-v2/internal/endpoints/v2
go get -u "github.com/aws/aws-sdk-go-v2/...
go mod tidy
go build -ldflags "$(LDFLAGS)" -o cls3 cmd/cls3/main.go
go install -ldflags "$(LDFLAGS)" github.com/go-to-k/cls3/cmd/cls3
Describe the bug
CLS3 cannot start when the AWS credentials requires to be refreshed.
To Reproduce
Start an EC2 with Assumed Role. The issue happens with IMDSv2 required or optional.
The instance is properly started and has an available role, and can proceed allowed operations within its role.
Install CLS3 with the standard procedure
Start the CLS3 program and try an operation :
Current workaround
This seems to be an issue with missing updates on Go libraries, as described here
I applied the workaround offered here
Download CLS3 source code and update go libraries
Then restarted the CLS3 and it worked
Environment
EC2 instance with IAM Instance Profile
IMDSv1 or v2 required : same result.
Summary
Go AWS SDK libraries needs to be updated.
The text was updated successfully, but these errors were encountered: