diff --git a/command/agent/auth/aws/aws.go b/command/agent/auth/aws/aws.go index fdac099e99eb..d3ea6007202d 100644 --- a/command/agent/auth/aws/aws.go +++ b/command/agent/auth/aws/aws.go @@ -134,6 +134,14 @@ func NewAWSAuthMethod(conf *auth.AuthConfig) (auth.AuthMethod, error) { } } + nonceRaw, ok := conf.Config["nonce"] + if ok { + a.nonce, ok = nonceRaw.(string) + if !ok { + return nil, errors.New("could not convert 'nonce' value into string") + } + } + if a.authType == typeIAM { // Check for an optional custom frequency at which we should poll for creds.