ImagePipe.Source.S3.InstanceRole (image_pipe v0.1.0)

Copy Markdown View Source

Credential provider for the IAM role attached to an EC2 instance, including Elastic Beanstalk, read from the instance metadata service (IMDSv2).

credentials: {:provider, ImagePipe.Source.S3.InstanceRole, []}

Setting up credentials is covered in Serving images from S3.

Options

  • :base_url (String.t/0) - Base URL of the instance metadata service. The default value is "http://169.254.169.254".

  • :ttl_seconds (pos_integer/0) - Lifetime requested for each metadata session token, in seconds. The default value is 21600.

  • :receive_timeout (non_neg_integer/0) - Milliseconds to wait for each response. The default value is 2000.

  • :connect_timeout (non_neg_integer/0) - Milliseconds to wait for a connection. The default value is 2000.