-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[v2] sync command doesn't fail immediately when SSO token expires #4863
Copy link
Copy link
Closed
Labels
closed-for-stalenessfeature-requestA feature should be added or improved.A feature should be added or improved.needs-reviewThis issue or pull request needs review from a core team member.This issue or pull request needs review from a core team member.s3sync
Description
When executing an S3 sync with an SSO profile, if the SSO token expires during the sync (e.g. expires via timeout), then the sync will continue, trying each file and displaying an error noting that the token has expired.
aws2 sync --profile SSOProfileName docs/ s3://example.bucket/backups
upload: ../docs/file1.txt to s3://example.bucket/backups/file1.txt
upload failed: ../docs/file2.txt to s3://example.bucket/backups/file2.txt The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws2 sso login with the corresponding profile.
upload failed: ../docs/file3.txt to s3://example.bucket/backups/file3.txt The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws2 sso login with the corresponding profile.
upload failed: ../docs/file4.txt to s3://example.bucket/backups/file4.txt The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws2 sso login with the corresponding profile.
...
I would imagine (without entirely thinking through any possible side-effects) that the desired behaviour would be for the sync to fail immediately, rather than continue retrying.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
closed-for-stalenessfeature-requestA feature should be added or improved.A feature should be added or improved.needs-reviewThis issue or pull request needs review from a core team member.This issue or pull request needs review from a core team member.s3sync