EC2 instance metadata credential provider (IMDSv2).
Uses the IMDSv2 token flow (PUT token, then GET credentials).
Works on EC2, ECS (task role), and Lambda (execution role).
The endpoint is validated against a known-safe allowlist to
prevent SSRF attacks. Defaults to http://169.254.169.254.
EC2 instance metadata credential provider (IMDSv2). Uses the IMDSv2 token flow (PUT token, then GET credentials). Works on EC2, ECS (task role), and Lambda (execution role).
The endpoint is validated against a known-safe allowlist to prevent SSRF attacks. Defaults to http://169.254.169.254.