AMI is Amazon Machine Image; it provides the information required to launch an instance. One can also launch multiple instances using AMI when there are multiple vendors.
xxxxxxxxxx
aws ec2 run-instances \
--image-id ami-0daa89240da066fe5 \
--count 1 \
--instance-type t2.micro \
--key-name techiescamp \
--security-group-ids sg-023b5f8e016ce08e1 \
--subnet-id subnet-0782c73ff7b32d7c2 \
--block-device-mappings "[{\"DeviceName\":\"/dev/sdf\",\"Ebs\":{\"VolumeSize\":30,\"DeleteOnTermination\":false}}]" \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=java-app-server}]' 'ResourceType=volume,Tags=[{Key=Name,Value=java-app-server-disk}]' \
--user-data file://scripts/user-data.sh
xxxxxxxxxx
AMI is Amazon Machine Image; it provides the information required to launch an instance.
One can also launch multiple instances using AMI when there are multiple vendors.