IMDSv2 was initially introduced after the capital one attack. but aws users will have to explicitly enable it and its not enabled by default.
now they are changing the default modes for instances launched from aws console using quick start process. and sometime in 2024 they will give an option to customers to control the default value for all run instances API calls from an account