79508448

Date: 2025-03-14 08:17:33
Score: 1
Natty:
Report link

I noticed same problem on ECS containers after enabling IMDSv2 on account level.

As per docs you should specify metadata hop limit to 2:

On the Manage IMDS defaults page, do the following:

  1. For Instance metadata service, choose Enabled.
  2. For Metadata version, choose V2 only (token required).
  3. For Metadata response hop limit, specify 2 if your instances will host containers.

See also this question: Using IMDS (v2) with token inside docker on EC2 or ECS

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: nouveu