Skip to content

Amazon EC2 - Process Steps

Associate IPs

Associate Elastic IP addresses with instances.

NameTypeDescriptionRequired
AWS JarStringThe fully qualified path to the JAR file for the Amazon Web Services (AWS) SDK.
Access Key IDStringThe EC2 access key ID value that is used to log in.Yes
IPsStringA list of one or more elastic IP addresses to associate with instances.Put each address on a new line.Yes
Instance IDsStringA list of IDs that corresponds to the elastic IP addresses to associate with instances. Separate each ID with a comma.Yes
Secret KeyStringThe EC2 secret key.Yes

Create Security Group

Create a security group from a file.

NameTypeDescriptionRequired
AWS JarStringThe fully qualified path to the JAR file for the AWS SDK.Yes
Access Key IDStringThe EC2 access key ID value that is used to log in.Yes
Definition FileStringThe file that describes the allowed IPs and ports for the security group.No
Create the file in the following format:
<SecurityGroup name="*name*" description="description" vpcId="ID optional">
<ipPermission protocol="tcp" fromPort="22" toPort="22">
<ipRange value="0.0.0.0/0"/></ipPermission></SecuirtyGroup>
If this property is blank, an empty security group is created.
DescriptionStringThe description of the security group to create.No
This property is used if you are not using a file to add permissions.
NameStringThe name of the security group to create. This property is used if you are not using a file to add permissions.No
This property is used if you are not using a file to add permissions.
Secret KeyStringThe EC2 secret key value.Yes
VPC IDStringThe ID of the virtual private cloud (VPC) to use, if you are not using a file to add permissions.No

Deregister Instances with LoadBalancer

This step deregisters instances with an Amazon load balancing feature.

NameTypeDescriptionRequired
AWS JarStringThe fully qualified path to the JAR file for the AWS SDK.Yes
Access Key IDStringThe EC2 access key ID value to use to log in.Yes
Instance IDsStringA list of one or more IDs of the instances to be deregistered. Separate each ID with a comma.Yes
Load Balancer NameStringThe name of the EC2 account load balancer to deregister the instances from.Yes
Secret KeyStringThe EC2 secret keyYes

Get Public DNS

Get the public Domain Name System (DNS) hostname for the specified instance IDs. Results are returned in a comma-separated list in the dns property.

NameTypeDescriptionRequired
AWS JarStringThe fully qualified path to the JAR file for the AWS SDK.Yes
Access Key IDStringThe EC2 access key ID value to use to log in.Yes
Instance IDsStringA list of instance IDs for which the DNS hostname is to be retrieved. Separate each instance ID with a comma. The returned DNS hostnames are in the same order that the IDs are specified.Yes
Secret KeyStringThe EC2 secret key value.Yes

Launch Instances

Launch instances of the given Amazon Machine Image (AMI).

NameTypeDescriptionRequired
# of instancesStringThe number of EC2 instances to start.Yes
AMI IDStringThe AMI ID of the instances to be started.Yes
AWS JarStringThe fully qualified path to the JAR file for the AWS SDK.Yes
Access Key IDStringThe EC2 access key ID to use to login.Yes
Availability ZoneStringThe zone to start the instances in.No
Instance TypeStringThe type of instances to run. Valid values are as follows: m1.small, m1.large, m1.xlarge, m2.xlarge, m2.4xlarge, c1.medium, and c1.xlarge.Yes
KeypairStringThe keypair value to start the instances with.No
Secret KeyStringThe EC2 secret key value.Yes
Security GroupStringA list of security group names to use. Separate each group name with a comma.No
User dataStringThe user data to pass to the instance.No

Register Instances with LoadBalancer

Register an instance with an Amazon Load Balancer.

NameTypeDescriptionRequired
AWS JarStringThe fully qualified path to the JAR file for the AWS SDK.Yes
Access Key IDStringThe EC2 access key ID to use to login.Yes
Instance IDsStringA list of instance IDs to associate with the load balancer. Separate each ID with a comma.Yes
Load Balancer NameStringThe load balancer name that is associated with the EC2 account to register the instances with.Yes
Secret KeyStringThe EC2 secret keyYes

Terminate Instances

Terminate instances with the given instance IDs.

NameTypeDescriptionRequired
AWS JarStringThe fully qualified path to the JAR file for the AWS SDK.Yes
Access Key IDStringThe EC2 access key ID to use to login.Yes
Instance IDsStringA list of instance IDs to be terminated. Separate each instance ID with a comma.Yes
Secret KeyStringThe EC2 secret key.Yes

Wait for instances

Wait for instances to be in a certain state.

NameTypeDescriptionRequired
AWS JarStringThe fully qualified path to the JAR file for the AWS SDK.Yes
Access Key IDStringThe EC2 access key ID to use to login.Yes
Instance IDsStringA list of instance IDs that correspond to the IPs to associate with instances. Separate each instance ID with a comma.Yes
Secret KeyStringThe EC2 secret key value.Yes
StateStringThe expected instance state.Yes
TimeoutStringThe timeout value for this step.Yes