EC2
Connect to instances
Methods to connect
Method
Requires Direct Network Access
Requires Agent
Requires EC2 IAM Permissions
1) In AWS Console, go to:
EC2 -> Instance ID -> Connect -> EC2 Instance Connect -> Chose Public OR Private IP -> ConnectEC2 -> Instance ID -> SSM Session Manager -> ConnectInstance Metadata Service (IMDS)
IMDSv1
1) Get the role name (EC2 Instance Shell)
2) Ask for session credentials
IMDSv2
1) Enable IMDSv2
2) Get the HTTP Token
3) Get credentials
EC2 Networking
1) Look for network information
EC2 Storage
1) Check information on a snapshot
2) Get the availability zone
3) Create a volume from the snapshot
4) Attach the volume to our instance
5) Check the existance of the volume
6) Create a mount point, mount the disk and view contents
EC2 Configuration
UserData file
1) Read the data from the UserData file
Last updated