aws ec2 run-instances
Launches the specified number of instances using an AMI for which you have permissions. AWS CLI reference
44 options Its page in the AWS CLI reference
Options
Show its 44 options
--additional-infoReserved.--block-device-mappingsThe block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at launch.--capacity-reservation-specificationInformation about the Capacity Reservation targeting option.--client-tokenUnique, case-sensitive identifier you provide to ensure the idempotency of the request.--cpu-optionsThe CPU options for the instance.--credit-specificationThe credit option for CPU usage of the burstable performance instance.--disable-api-stopIndicates whether an instance is enabled for stop protection.--disable-api-termination, --enable-api-terminationIndicates whether termination protection is enabled for the instance.--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--ebs-optimizedIndicates whether the instance is optimized for Amazon EBS I/O.--elastic-gpu-specificationAn elastic GPU to associate with the instance.--elastic-inference-acceleratorsAn elastic inference accelerator to associate with the instance.--enable-primary-ipv6If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6 address.--enclave-optionsIndicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.--hibernation-optionsIndicates whether an instance is enabled for hibernation.--iam-instance-profileThe name or Amazon Resource Name (ARN) of an IAM instance profile.--image-idThe ID of the AMI.--instance-initiated-shutdown-behaviorIndicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).--instance-market-optionsThe market (purchasing) option for the instances.--instance-typeThe instance type.--ipv6-address-countThe number of IPv6 addresses to associate with the primary network interface.--ipv6-addressesThe IPv6 addresses from the range of the subnet to associate with the primary network interface.--kernel-idThe ID of the kernel.--key-nameThe name of the key pair.--launch-templateThe launch template.--license-specificationsThe license configurations.--maintenance-optionsThe maintenance and recovery options for the instance.--max-countThe maximum number of instances to launch.--metadata-optionsThe metadata options for the instance.--min-countThe minimum number of instances to launch.--monitoringSpecifies whether detailed monitoring is enabled for the instance.--network-interfacesThe network interfaces to associate with the instance.--network-performance-optionsContains settings for the network performance options for the instance.--operatorReserved for internal use.--placementThe placement for the instance.--private-dns-name-optionsThe options for the instance hostname.--private-ip-addressThe primary IPv4 address.--ramdisk-idThe ID of the RAM disk to select.--secondary-interfacesThe secondary interfaces to associate with the instance.--security-group-idsThe IDs of the security groups.--security-groups[Default VPC] The names of the security groups.--subnet-idThe ID of the subnet to launch the instance into.--tag-specificationsThe tags to apply to the resources that are created during instance launch.--user-dataThe user data to make available to the instance.