ec2-metadata

EC2 instance metadata query tool

Fedora
RUN dnf install -y ec2-metadata
click the source code to copy install ec2-metadata on any operating system with command-not-found.com