What is the problem you are having with rclone?
Support for AWS SSO was added in AWS SDK for Go v1.37.0 (Release Release v1.37.0 · aws/aws-sdk-go · GitHub), but rclone does not recognize SSO credentials. The environment variable AWS_PROFILE has been set and the AWS CLI is able to use SSO credentials, but rclone throws an error.
I found a similar forum that concluded once support for SSO was added to the AWS SDK for Go, rclone should be able to use SSO credentials, but this doesn't seem to be the case.
What is your rclone version (output from rclone version
)
rclone v1.56.0-beta.5405.6366d3dfc
- os/version: Microsoft Windows 10 Enterprise 2009 (64 bit)
- os/kernel: 10.0.19042.804 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.16.3
- go/linking: dynamic
- go/tags: cmount
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10, 64 bit
Which cloud storage system are you using? (eg Google Drive)
S3
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone ls s3: -vv
The rclone config contents with secrets removed.
[s3]
type = s3
env_auth = true
region = us-east-1
storage_class = GLACIER
provider = AWS
A log from the command with the -vv
flag
C:\Users\User>rclone ls s3: -vv
2021/04/15 13:25:06 DEBUG : Using config file from "C:\\Users\\User\\.config\\rclone\\rclone.conf"
2021/04/15 13:25:06 DEBUG : rclone: Version "v1.56.0-beta.5405.6366d3dfc" starting with parameters ["rclone" "ls" "s3:" "-vv"]
2021/04/15 13:25:06 DEBUG : Creating backend with remote "s3:"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x12e0429]
goroutine 66 [running]:
github.com/aws/aws-sdk-go/aws/credentials/stscreds.(*WebIdentityRoleProvider).RetrieveWithContext(0xc000170c60, 0x2179be8, 0xc00003c050, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
github.com/aws/aws-sdk-go@v1.37.3/aws/credentials/stscreds/web_identity_provider.go:111 +0x69
github.com/aws/aws-sdk-go/aws/credentials/stscreds.(*WebIdentityRoleProvider).Retrieve(0xc000170c60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2bd98cd8, ...)
github.com/aws/aws-sdk-go@v1.37.3/aws/credentials/stscreds/web_identity_provider.go:104 +0x9d
github.com/aws/aws-sdk-go/aws/credentials.(*ChainProvider).Retrieve(0xc0007c0ff0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
github.com/aws/aws-sdk-go@v1.37.3/aws/credentials/chain_provider.go:75 +0x10b
github.com/aws/aws-sdk-go/aws/credentials.(*Credentials).singleRetrieve(0xc00025b300, 0x2179e18, 0xc000502200, 0x0, 0x0, 0x0, 0x0)
github.com/aws/aws-sdk-go@v1.37.3/aws/credentials/credentials.go:279 +0x562
github.com/aws/aws-sdk-go/aws/credentials.(*Credentials).GetWithContext.func1(0x0, 0x0, 0x0, 0x0)
github.com/aws/aws-sdk-go@v1.37.3/aws/credentials/credentials.go:255 +0x91
github.com/aws/aws-sdk-go/internal/sync/singleflight.(*Group).doCall(0xc00025b300, 0xc00004c960, 0x0, 0x0, 0xc00007afc0)
github.com/aws/aws-sdk-go@v1.37.3/internal/sync/singleflight/singleflight.go:97 +0x35
created by github.com/aws/aws-sdk-go/internal/sync/singleflight.(*Group).DoChan
github.com/aws/aws-sdk-go@v1.37.3/internal/sync/singleflight/singleflight.go:90 +0x2cc