-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathami
29 lines (20 loc) · 1.5 KB
/
ami
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#################################
# By Ksanchez #
# Security+ | MGP | Ps. Auditor #
# @ksanchez_cld (Twitter) #
#################################
AMI (AMAZON MACHINE IMAGES)
- Provide the information required to launch an instance.
- Amazon Machine Image (AMI) is a master image for the creation of virtual servers on the Amazon cloud.
- An AMI contains instruction to launch an EC2 instance.
- This includes an operating system.
- Machine architecture 32 bit or 64 bit.
- Software stack for your applications.
- Launch permissions, disk size, etc.
- An AMI is a prerequisite for creating and using an auto scaling group.
[configuration parameters]
- No reboot:
By default, Amazon EC2 shuts down the instance, takes a snapshot of attached volumes, and then creates and registers the AMI. If this option is checked, then the EC2 instance will not shut down and the integrity of the filesystem cannot be guaranteed while creating the AMI.
- Delete on Termination:
During auto scaling the EC2 instances are created or terminated depending upon the metrics you have configured for. During the launch of an EC2 instance, EBS volumes are created and referenced by the AMI; in our case, it is the Root volume. When the EC2 is terminated, the volume is not deleted, so over a period of time you accumulate EBS volumes that you have to pay unnecessarily, to store.
- As our application is stateless and does not store any data on the instance, we can delete the EBS volume and hence save on the cost.