Skip to content

Commit 221401f

Browse files
authored
Fix: workspace IAM role does not need special handling (#245)
1 parent f72ee75 commit 221401f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/awsauth/auth.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)