EC2 Flashcards
What is AMI?
An AMI (Amazon Machine Image) is a template that contains the software configuration (operating system, application server, and applications) required to launch an EC2 instance
Permissions required on the private key (pem file)
0400
Default policy for inbound traffic in a security groups
Deny all
Default policy for outbound traffic in a security group
Allow all
What is an Elastic IP?
a static public IPv4 IP designed for dynamic cloud computing.
are Elastic IPs region specific or global?
region specific
command used to start services in an Amazon Linux 2 machine
systemctl
Whats bootstrapping?
Launching commands when the machine starts
what user is used to run the bootstrap routine?
root
What is the EC2 User data?
Data used to perform common automated configuration tasks and even run scripts after the . EC2 instance starts
What types of used data can you pass to Amazon EC2?
shells scripts and cloud-init directives
When are the user data scripts run?
By default they are only run during the boot cycle when you first launch an EC2 instance
Where is the user data script copied to for execution?
it is copied to the directory /var/lib/cloud
Why should you delete the user data script from the EC2 instance?
If you were to create an AMI from the EC2 instance and the user data was not deleted, then the script would be executed for every EC2 instance created from the resulting AMI
You pay for an EC2 instance compute component only when it’s in “running” state or also when it is on “stopped” state?
Only when it is in “running” state