ec2meta

Metadata service

Fedora
RUN dnf install -y perl-Net-Amazon-EC2-Metadata
click the source code to copy install ec2meta on any operating system with command-not-found.com