File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,13 @@ func (rcp *awsConfigProvider) GetConfig(ctx context.Context, authSettings Settin
4242 authType := authSettings .GetAuthType ()
4343 logger .Debug (fmt .Sprintf ("Using auth type: %s" , authType ))
4444 switch authType {
45- case AuthTypeDefault : // nothing else to do here
45+ case AuthTypeDefault , AuthTypeEC2IAMRole : // nothing else to do here
4646 case AuthTypeKeys :
4747 options = append (options , authSettings .WithStaticCredentials (rcp .client ))
4848 case AuthTypeSharedCreds :
4949 options = append (options , authSettings .WithSharedCredentials ())
5050 case AuthTypeGrafanaAssumeRole :
5151 options = append (options , authSettings .WithGrafanaAssumeRole (ctx , rcp .client ))
52- case AuthTypeEC2IAMRole :
53- // TODO: test this
54- options = append (options , authSettings .WithEC2RoleCredentials (rcp .client ))
5552 default :
5653 return aws.Config {}, fmt .Errorf ("unknown auth type: %s" , authType )
5754 }
You can’t perform that action at this time.
0 commit comments