Skip to content

Commit 992fbd3

Browse files
committed
r/aws_iot_role_alias: Handle ResourceNotFound on Delete.
1 parent 90d5d0b commit 992fbd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/service/iot/role_alias.go

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ func resourceRoleAliasDelete(ctx context.Context, d *schema.ResourceData, meta i
151151
RoleAlias: aws.String(d.Id()),
152152
})
153153

154+
if errs.IsA[*awstypes.ResourceNotFoundException](err) {
155+
return diags
156+
}
157+
154158
if err != nil {
155159
return sdkdiag.AppendErrorf(diags, "deleting IoT Role Alias (%s): %s", d.Id(), err)
156160
}

0 commit comments

Comments
 (0)