Hitachi

JP1 Version 12 JP1/Automatic Operation Service Template Reference


5.2.13 Start a virtual server

Function

This plugin can start instances in an Amazon EC2 environment.

The required server is shown as follows:

- AWS control server (execution-target server)

This is a server on which AWS Tools for Windows PowerShell (hereinafter referred to as "AWS Tools") is installed. This product can forward plugins to the server to be executed.

- Instance

This is a regular virtual server in an Amazon EC2 environment.

The scripts in this plugin execute the following AWS Tools commandlets:

- Start-EC2Instance -InstanceId instance-ID (the value of the AWS.instanceId property)

After executing the above commandlets, make sure that the status of the started instance is "running".

For details about the AWS Tools commandlets, refer to "AWS Tools for Windows PowerShell Cmdlet Reference" in the AWS document.

Use situation

Use this plugin to start instances in an Amazon EC2 environment.

Prerequisites

For the most recent information about the prerequisite product in the system, prerequisite products on the execution-target server, supported OSs for the prerequisite products on the execution-target server, and prerequisite products on the execution-target system, see the Release Notes.

Prerequisite product in the system:

JP1/Automatic Operation 11-00 or later

Prerequisite products on the execution-target server:

- AWS Tools for Windows PowerShell

- Microsoft .Net Framework 3.5 or later

Supported OSs for the prerequisite products on the execution-target server:

- Windows Server 2008 R2 Standard/Enterprise/Datacenter

- Windows Server 2012 Standard/Datacenter, Windows Server 2012 R2 Standard/Datacenter

Note: A Server Core installation environment is out of scope.

Prerequisite products in the execution-target system:

(1) Prerequisite OSs for an instance

- Windows Server 2008 R2 Standard/Enterprise/Datacenter

- Windows Server 2012 Standard/Datacenter, Windows Server 2012 R2 Standard/Datacenter

- Red Hat Enterprise Linux Server 6 (32-bit x86), Red Hat Enterprise Linux Server 6 (64-bit x86_64)

- Red Hat Enterprise Linux Server 7 (64-bit x86_64)

- Red Hat Enterprise Linux Server 8 (64-bit x86_64)

Cautions

(1) Do not specify character strings that include a double quotation mark (") or a single quotation mark (') for the properties of this plugin.

(2) For additional remarks, refer to "AWS Tools for Windows PowerShell Cmdlet Reference" in the AWS document.

Execution privilege

(1) The policy must be set to allow an IAM user to log in to AWS to perform the following actions:

- Starting instances and obtaining instance statuses

Version

02.00.00

Plug-in tags

Control VM,AWS

Plug-in name displayed in the task log

awsPowerOnVM

Return code

0: Normal

12: Error (mistake by user) Invalid property

23: Error (invalid environment) The environment requirements have not been met.

27: Error (Check with the task log regarding the error details.) Unidentified error

41: Error (error detected in the component) Property not entered (An error was detected in the component script.)

Property list

The following table lists the properties:

Property key

Property name

Description

Default value

I/O type

Required

plugin.destinationHost

Host name of the execution target server

Specify the host name or IP address of the server on which this plugin will be executed. IPv6 addresses are not supported.

--

Input

R

AWS.accessKeyId

Access key ID

Specify the access key ID for connecting to AWS.

--

Input

R

AWS.secretAccessKey

Secret access key

Specify the secret access key for connecting to AWS.

--

Input

R

AWS.region

Region

Specify an AWS region that is a connection destination.

--

Input

R

AWS.instanceId

Instance ID

Specify the ID of the instance.

--

Input

R

AWS.checkInstanceEnabledCount

Instance status (started) check count

Specify the number of times to check whether the instance has started. The maximum waiting time is determined by combining this count and the instance status (started) check interval.

--

Input

R

AWS.checkInstanceEnabledInterval

Instance status (started) check interval

Specify the interval (in seconds) to check whether the instance has started.

--

Input

R

AWS.instanceState

Instance status

Stores the instance status.

--

Output

O

common.returnValue

Return value for the plugin

The return value of this plugin stored.

--

Output

O