Use supplied user creds when creating an STS client

Signed-off-by: Tyler Reid <tyler.reid@grafana.com>
This commit is contained in:
Tyler Reid 2021-06-22 14:43:41 -05:00
parent 9ff4ac3301
commit 30a83f7bf7
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ func (n *Notifier) Notify(ctx context.Context, alert ...*types.Alert) (bool, err
stsSess, err = session.NewSessionWithOptions(session.Options{
Config: aws.Config{
Region: aws.String(n.conf.Sigv4.Region),
Credentials: creds,
},
Profile: n.conf.Sigv4.Profile,
})