2 Answers
- Newest
- Most votes
- Most comments
0
- Install AWS Cli tool in windows, following this content.
- Authorize your command line tool into aws.
- Build your script. You are ready to go.
answered 3 years ago
0
You might want to check out this link https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/update-aws-cli-credentials-from-aws-iam-identity-center-by-using-powershell.html
You pretty much have to programmatically get a new token every time. Easiest way is to NOT use SSO but with a very limited access to grab those files with an API user using non-expiring access/secret key for this workload so you can automate this without worry.
Another way is to enable AWS S3 File Gateway so you can access the specific folder in S3 via SMB https://docs.aws.amazon.com/filegateway/latest/files3/smb-acl.html
answered 3 years ago
Relevant content
asked 4 years ago

Hi, thanks for answer. Just for have more context. Why if I "authorize my command line tool into aws" works for solving the error "Error when retrieving token from sso: Token has expired and refresh failed"?