How it works…

This example uses the command-line interface (CLI) instead of the web console. Choosing the CLI over the console is largely a matter of preference, but they both result in the same underlying API calls being made in your account to create resources.

While the key-name argument is optional, you will not be able to connect to your instance unless you have preconfigured some other way of logging in. When the instance is created, the public half of the key is written to ~/.ssh/known_hosts so that, when you use your SSH client with the private key, the instance recognizes you as an authorized user.

The t2.micro instance type that's used in this recipe is included in the AWS free tier. You can run one micro instance per month for free during the first 12 months of your usage. See https://aws.amazon.com/free for more information.

Since no Virtual Private Cloud (VPC) or security groups are specified, the instance will be launched in your account's default VPC and security group. You can modify an instance's security groups after it is launched without stopping it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.88.228