karthiksonti24 / ec2-get-iam-keys

IAM Credentials from EC2 Role using Instance Metadata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EC2 Instance Metadata

This script is used to get access key, secret key and session token from role attached to an instance.

Prerequisites

Make sure you have AWS CLI and JQ package installed before. Steps for installation of AWS CLI can be found here

For Redhat/Centos distributon JQ can be installed using yum install jq and for Debian apt-get install jq .

USAGE

./ec2-instance-metadata.sh 

About

IAM Credentials from EC2 Role using Instance Metadata


Languages

Language:Shell 100.0%