Of course it is a scam and there is nothing you need to do other than delete it. You can report the text to Apple if you wish, but these types of scams are quite common where they will originate from many different "spoofed" number so even blocking is not very effective.
Recognize and avoid social engineering schemes including phishing messages, phony support calls, and other scams - Apple Support
As with any text message/email, the simple rule of NEVER calling a number or click a link and provide personal information is a 100% sure way from being a victim of a phishing attempt. There are always ways to verify an email/text without using that number or link found in there, no matter if they are claiming to be from Apple, your bank, the government, or any other business