I am attempting to write a python code that would few of my manual steps in logging into the AWS platform.
In Ubuntu terminal , I used to write the command
ssh -A ec2-user@<ip-address>
and then again log into another instance using
ssh ec2-user@<ip.address>
Now I am looking at python code that would be able to automate this logging in process. I have written the following code till now.
import boto3
ec2 = boto3.resource('ec2')