ArroyoSystems / arroyo

Distributed stream processing engine in Rust

Home Page:https://arroyo.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support AWS IMDSv2

mwylde opened this issue · comments

IMDSv2 (instance metadata service) is a new, more secure mechanism to get instance metadata from an EC2 instance: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-metadata-v2-how-it-works.html. Unlike IMDSv1 which is just an endpoint that returns metadata from a GET request, v2 is a session-based protocol that requires creating a token, then using it to read the metadata.

Rusoto does not support v2 (rusoto/rusoto#1818) and is unlikely to, given that it is in maintenance mode.

A couple of possible options:

We should think about moving to official AWS SDK for Rust, not sure about the reliability though