Module erlcloud_ecs_container_credentials

Function Index

get_container_credentials/1Retrieve the container credentials.

Function Details

get_container_credentials/1

get_container_credentials(Config::aws_config()) -> {ok, binary()} | {error, container_credentials_unavailable | erlcloud_aws:httpc_result_error()}

Retrieve the container credentials. Will fail if not an ECS task.

This convenience function will retrieve the credentials from the AWS metadata available at http://169.254.170.2${AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}


Generated by EDoc