-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Support AWS Assume Role #4472
Description
Output of restic version
restic 0.16.0 compiled with go1.20.6 on darwin/amd64
What should restic do differently? Which functionality do you think we should add?
Support Assuming a Role with AWS for S3 storage. Currently AWS IRSA, config, env vars all work, but if you need to use credentials to assume a role first and then use those credentials, it does not work.
I will offer to do the PR, it will require the following:
- using AWS SDK
- adding 3 new configuration items
Based on current implementation either as backend options or environment variables (I think environment variables makes the most sense here, the question is how to prefix them)
Once the standard credential collection happens, if role arn is set, an additional set of calls would be made to change the credentials out using STS.
What are you trying to do? What problem would this solve?
Using restic in a series of scripts that has basic permissions in AWS, however I need it to backup to different s3 buckets using different roles.
Did restic help you today? Did it make you happy in any way?
Great tool!