How can you create a server (EC2 Instance) in AWS using only AWS CLI?
After watching this video you will know all about :
- how to create EC2 instance using AWS CLI
- how `aws help` command works
- how to choose AMI ID for EC2 instance
- how to choose instance type
- how to connect to EC2 server using SSH key pair
- what `aws ec2 describe-instances` command is for
- how to terminate EC2 instance using AWS CLI
- how exactly command `aws ec2 terminate-instances` work
Links to previous videos I mentioned in this material:
[ Ссылка ] - AWS CLI installation and configuration
[ Ссылка ] - create EC2 instance in AWS Console
0:00 Create EC2 instance using AWS CLI
1:05 aws help command
1:28 aws ec2 help
1:52 aws ec2 run-instances
2:15 choosing AMI ID for our EC2
3:27 choosing instance type for our server
3:44 SSH key pair for AWS EC2
4:12 specifying region for our server
4:55 running AWS CLI command to create EC2 instance
5:55 connecting to EC2 server using SSH key pair
6:30 amending Security Group to allow SSH port 22
7:55 aws ec2 describe-instances command
9:40 terminating EC2 instance using AWS CLI
9:56 aws ec2 terminate-instances command
Thank you for watching!
marek@automation-avenue.com
#6
![](https://s2.save4k.ru/pic/S6_4HftKzag/maxresdefault.jpg)