AWS EC2 - part 2 Flashcards
What is EC2 user data
possible to bootstrap instances using an EC2 user data script
what is bootstrapping?
launching commands when a machine starts
How often is EC2 user data script run?
Only once, when machine starts
What are some examples of how UC2 user data is used to automate boot tasks?
Installing Updates
Installing Software
Downloading common files from the internet
Anything you can think of
What user does EC2 user data script run under?
root/admin
What can you configure for an EC2 instance?
CPU
Memory
Storage
Network performance
EBS bandwidth
What does the EC2 instance naming convention?
m:instance class, 5:generation, 2xlarge: size of instance class
What is a Security Group?
A firewall on our EC2 instance.
Regulate access to ports
authorized IP ranges
control inbond netowrk
control outbound network
type: protocol, port range, source
How many instances can a security group to be associated?
many
If app gets a timeout (not accessible) what is the likely cause of the errror?
Security group issue
If your app give “connection refused” error, what is the likely cause?
An application error or it is not launched
What is port 22 for?
SSH
What is port 21 for?
FTP
What is port 22 for?
Secure File Transfer Protocol (upload files using SSH)
what is port 80 and 443 for?
http/https