diff --git a/config/config.go b/config/config.go index a249bd5..c262e8c 100644 --- a/config/config.go +++ b/config/config.go @@ -85,10 +85,6 @@ func (c StaticCredentials) Validate() error { return fmt.Errorf("missing secret_access_key") } - if c.SessionToken == "" { - return fmt.Errorf("missing session_token") - } - return nil } diff --git a/config/config_test.go b/config/config_test.go index 23dc01f..7458d67 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -159,7 +159,7 @@ func TestCredentialsValidate(t *testing.T) { SessionToken: "", }, }, - errString: "missing session_token", + errString: "", }, }