An Amazon EC2 instance is just like any other computer running with a chosen operating system (Linux, Windows). The fact that it is an EC2 instance has no impact on how you would do this activity. You can use AWS SDK to create an instance. You can use CMDER to access the instance.