diff --git a/sigv4/sigv4.go b/sigv4/sigv4.go index 1f6c42eb..ef88f5c1 100644 --- a/sigv4/sigv4.go +++ b/sigv4/sigv4.go @@ -62,6 +62,7 @@ func NewSigV4RoundTripper(cfg *SigV4Config, next http.RoundTripper) (http.RoundT sess, err := session.NewSessionWithOptions(session.Options{ Config: aws.Config{ Region: aws.String(cfg.Region), + Endpoint: aws.String(cfg.Endpoint), Credentials: creds, }, Profile: cfg.Profile, diff --git a/sigv4/sigv4_config.go b/sigv4/sigv4_config.go index 776fe764..614d18dc 100644 --- a/sigv4/sigv4_config.go +++ b/sigv4/sigv4_config.go @@ -28,6 +28,7 @@ type SigV4Config struct { SecretKey config.Secret `yaml:"secret_key,omitempty"` Profile string `yaml:"profile,omitempty"` RoleARN string `yaml:"role_arn,omitempty"` + Endpoint string `yaml:"endpoint,omitempty"` } func (c *SigV4Config) Validate() error { diff --git a/sigv4/testdata/sigv4_good.yaml b/sigv4/testdata/sigv4_good.yaml index b259c933..ca4712b1 100644 --- a/sigv4/testdata/sigv4_good.yaml +++ b/sigv4/testdata/sigv4_good.yaml @@ -3,3 +3,4 @@ access_key: AccessKey secret_key: SecretKey profile: profile role_arn: blah:role/arn +endpoint: https://sts.us-west-2.amazonaws.com