Credential provider that fetches container credentials with GET request. container environment variables are used in constructing request URI.
Methods | ||
---|---|---|
public
|
__construct(array $config = [])
|
# |
public
|
__invoke(): PromiseInterface
|
# |
public
|
getAttempts(): int
|
# |
public
|
setHeaderForAuthToken()
|
# |
Constants | ||
---|---|---|
public
|
SERVER_URI = 'http://169.254.170.2'
|
# |
public
|
ENV_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"
|
# |
public
|
ENV_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"
|
# |
public
|
ENV_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"
|
# |
public
|
ENV_AUTH_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"
|
# |
public
|
ENV_TIMEOUT = 'AWS_METADATA_SERVICE_TIMEOUT'
|
# |
public
|
EKS_SERVER_HOST_IPV4 = '169.254.170.23'
|
# |
public
|
EKS_SERVER_HOST_IPV6 = 'fd00:ec2::23'
|
# |
public
|
ENV_RETRIES = 'AWS_METADATA_SERVICE_NUM_ATTEMPTS'
|
# |
public
|
DEFAULT_ENV_TIMEOUT = 1.0
|
# |
public
|
DEFAULT_ENV_RETRIES = 3
|
# |