diff --git a/catalog/resource_credential.go b/catalog/resource_credential.go index 0f5921c81..8e6ae8102 100644 --- a/catalog/resource_credential.go +++ b/catalog/resource_credential.go @@ -139,6 +139,11 @@ func ResourceCredential() common.Resource { } updateCredRequest.Owner = "" + // Workaround until backend team fixes API issue + if updateCredRequest.AwsIamRole != nil { // Update API accepts only RoleArn, not the rest of attributes + updateCredRequest.AwsIamRole = &catalog.AwsIamRole{RoleArn: updateCredRequest.AwsIamRole.RoleArn} + } + // End of workaround _, err = w.Credentials.UpdateCredential(ctx, updateCredRequest) if err != nil { if d.HasChange("owner") {