Support for temporary credentials

Handle session token so that temporary credentials are supported
This commit is contained in:
Diaa Sami 2021-08-24 17:53:04 +02:00 committed by Diaa Sami
parent 96e79162fb
commit c35097fd52
8 changed files with 88 additions and 58 deletions

View file

@ -5,6 +5,7 @@ type AWSTargetOptions struct {
Region string `json:"region"`
AccessKeyID string `json:"accessKeyID"`
SecretAccessKey string `json:"secretAccessKey"`
SessionToken string `json:"sessionToken"`
Bucket string `json:"bucket"`
Key string `json:"key"`
ShareWithAccounts []string `json:"shareWithAccounts"`
@ -32,6 +33,7 @@ type AWSS3TargetOptions struct {
Region string `json:"region"`
AccessKeyID string `json:"accessKeyID"`
SecretAccessKey string `json:"secretAccessKey"`
SessionToken string `json:"sessionToken"`
Bucket string `json:"bucket"`
Key string `json:"key"`
}