https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html
https://www.websitebuilderinsider.com/how-do-i-get-my-aws-session-token/ https://docs.aws.amazon.com/STS/latest/APIReference/API_GetSessionToken.html
https://aws.amazon.com/ec2/instance-types
https://cloud-images.ubuntu.com/locator/ec2/
You can try this https://gist.github.com/magnetikonline/e822a78a9b691d86d6e45626f8f0c977