This is in the testing spec.
Discourse uses a version of the AWS SDK (3.130.2) above the minimum required to support IMDSv2 and from what I can tell looking at the MetadataNoToken
metric in our AWS deployments, we have no calls to IMDSv1.
From what I can tell we’re already using IMDSv2 everywhere.