Skip to main content

Launch instances

Create new instances from a machine image, with a name, tags and a start-up script.

Command in the AWS EC2 toolkit · id ooa.aws_ec2/launch_instances · 10 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoec2Name of the session opened by Connect.
Image IDStringYesMachine image (AMI) id.
Instance typeStringYesInstance type, e.g. t3.micro or m6i.large.
CountNumberNo1How many instances to create (1-100).
NameStringNoName shown in the AWS console (the Name tag).
Key pairStringNoName of the key pair for signing in to the instance.
Subnet IDStringNoSubnet to start the instances in. Leave empty for the default.
Security group IDsListNoSecurity group ids. Leave empty for the default group.
TagsDictionaryNoMore tags, e.g. {"Team": "Finance", "CostCenter": "4711"}.
User dataStringNoStart-up script or cloud-init text, run when the instance first starts.

Outputs​

OutputTypeWhat it is
instance_idsListThe ids of the new instances.
instancesTableThe new instances, with the same columns as Describe instances.