kinetex - v1.0.0-rc.1
    Preparing search index...

    Function imdsCredentials

    • 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.

      Parameters

      • options: { endpoint?: string; timeout?: number } = {}

      Returns CredentialProvider