Starting from:
$30

$24

Assignment-4-2 Solution

AWS Script




* Create SSH keypair to connect to instance with via aws SDK

* create_key_pair() method: Documentation

* Save the private key in it’s return JSON object

* Save to a .pem file in current directory, with permissions 400

* Create an t2.micro EC2 instance

* create_instances() method: Documentation

* Use keypair that you created

* Save the public IP address of the instance in it’s return JSON object

* Print out the IP address of the instance, and the path to the saved .pem private key

More products