Credential provider for ECS, Fargate, and EKS container credentials.
credentials:
{:provider, ImagePipe.Source.S3.ContainerCredentials,
relative_uri: System.fetch_env!("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI")}Pass the values the platform sets in the AWS_CONTAINER_* environment
variables. Fetching fails when neither :full_uri nor :relative_uri is
given. Setting up credentials is covered in
Serving images from S3.
Options
:base_url(String.t/0) - Base URL that:relative_uriis appended to. The default value is"http://169.254.170.2".:full_uri(String.t/0) - Full credentials URL, fromAWS_CONTAINER_CREDENTIALS_FULL_URI. Takes precedence over:relative_uri. Must usehttps, a loopback host, or the ECS or EKS credential endpoint, so the token can't be sent to another host.:relative_uri(String.t/0) - Credentials path, fromAWS_CONTAINER_CREDENTIALS_RELATIVE_URI. Must start with/.:auth_token(String.t/0) -Authorizationheader value, fromAWS_CONTAINER_AUTHORIZATION_TOKEN.:auth_token_file(String.t/0) - Path of a file holding theAuthorizationheader value, fromAWS_CONTAINER_AUTHORIZATION_TOKEN_FILE. The file is read again on every refresh, since the platform rotates it. Takes precedence over:auth_token.:receive_timeout(non_neg_integer/0) - Milliseconds to wait for each response. The default value is2000.:connect_timeout(non_neg_integer/0) - Milliseconds to wait for a connection. The default value is2000.