Instances EC2 pré configurées. Différentes sources :
Paramétrage de la VM pour CPU, mémoire, stockage, performance réseau …
Pour un besoin interruptible qui fonctionne quand le coût est optimal.
Pour un besoin prévisible sur 1 à 3 ans pour un coût moindre
Pour une utilisation planifiée.
Le matériel est partagé avec d'autres clients.
Le matériel nous est dédié pour un coût plus élevé.
Idem avec plus de possibilité de customisation.
Pour exécuter des commandes lors du premier démarrage de l'instance. Par exemple pour mettre à jour l'OS ou installer un logiciel depuis un dépôt.
Rassemble les informations de l'instance qui s'exécute comme le hostname, security group, adresse MAC, adresse IP.
Accessible à l'adresse http://169.254.169.254/latest/meta-data.
curl -w "\n" http://169.254.169.254/latest/meta-data
curl -w "\n" http://169.254.169.254/latest/meta-data/mac
curl -w "\n" http://169.254.169.254/latest/meta-data/local-ipv4
curl -w "\n" http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
Your EC2 instances are organized into groups so that they can be treated as a logical unit for the purposes of scaling and management. When you create a group, you can specify its minimum, maximum, and desired number of EC2 instances.
Your group uses a launch configuration as a template for its EC2 instances. When you create a launch configuration, you can specify information such as the AMI ID, instance type, key pair, security groups, and block device mapping for your instances.
A launch template is similar to a launch configuration, in that it specifies instance configuration information. … However, defining a launch template instead of a launch configuration allows you to have multiple versions of a template. With versioning, you can create a subset of the full set of parameters and then reuse it to create other templates or template versions.
On peut augmenter ou diminuer le nombre d'instances selon plusieurs critères :