Skip to main content

AwsRunInstance

This Script is part of the Deprecated Content (Deprecated) Pack.#

Deprecated

Use the AWS-EC2 integration instead.

Creates an EC2 AWS instances from an image.

Script Data#


NameDescription
Script Typepython
TagsAmazon Web Services

Dependencies#


This script uses the following commands and scripts.

  • run-instance

Inputs#


Argument NameDescription
imageIdThe ID of the AMI.
instanceTypeThe instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide. The default is m1.small.
keyNameThe name of the key pair. A key pair can be created using CreateKeyPair or ImportKeyPair.
subnetId[EC2-VPC] The ID of the subnet to launch the instance into.
privateIpAddress[EC2-VPC] The primary IP address. You must specify a value from the IP address range of the subnet. Only one private IP address can be designated as primary. Therefore, you can't specify this parameter if PrivateIpAddresses.n.Primary is set to "true" and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.
availabilityZoneThe availability zone of the instance.
securityGroupThe security group name. Amazon EC2 uses the default security group as its default.

Outputs#


There are no outputs for this script.