Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Latest commit

 

History

History
16 lines (12 loc) · 589 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 589 Bytes

AWS instance metadata support for aws-erlang

Build Status

Fetch up-to-date credentials from the EC2 instance metadata service to use with aws-erlang. Credentials are automatically refreshed in the background.

Here is an example:

{ok, _} = application:ensure_all_started(aws_metadata),
Client = aws_metadata:get_client(),
{ok, Output, _Response} = aws_kinesis:list_streams(Client, #{}, []),
io:format("~p~n", [Output]).