ex-aws / ex_aws

A flexible, easy to use set of clients AWS APIs for Elixir
https://hex.pm/packages/ex_aws
MIT License
1.26k stars 521 forks source link

Convert IMDSv2 header value to string #877

Closed BryanLeong closed 2 years ago

BryanLeong commented 2 years ago

InstanceMetaTokenProvider.request_token/1 currently uses an integer header value (@metadata_token_ttl_seconds), which breaks the contract for the request callback on ExAws.Request.HttpClient.

Similar to ex-aws/ex_aws#710

bernardd commented 2 years ago

Thanks @BryanLeong!