The text message you received was a scam.
Simply block, report and delete the message.
Here is the exact phrase that most scammers use: "We have noticed some unusual activity", and in your case, the scammers used "confirm my account" in an attempt to fool you into believing their scam.
⛔️ Amazon would never send you a text message to confirm your credentials. ⚠️
Important:
If you receive a suspicious email or SMS text message that looks like it’s supposed to be from Apple, please email it to reportphishing@apple.com.
Learn how to → Recognize and avoid social engineering schemes including phishing messages, phony support calls and other scams.
Good luck! 👋🏼😉
Smiliñ 😎 Brian