Amazon EC2

Version: 1.0.10

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud.

Connect Amazon EC2 with LogicHub

  1. Navigate to Automations > Integrations.
  2. Search for Amazon EC2.
  3. Click Details, then the + icon. Enter the required information in the following fields.
    • Label: Enter a connection name.
    • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
    • Verify SSL: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).
    • Remote Agent: Run this integration using the LogicHub Remote Agent.
    • Region: Valid AWS Region Name. (To get a list of available regions, refer to this link).
    • Access Key: AWS Account Access Key.
    • Secret Key: AWS Account Secret Key.
  4. After you've entered all the details, click Connect.

Actions for Amazon EC2

Launch an Instance

Launch an instance of Amazon EC2.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
EC2 Image Id Column nameColumn name from parent table holding the Image ID.Required
EC2 Instance Type Column nameColumn name from parent table holding the Instance Type.Required
EC2 Key Pair Column nameColumn name from parent table holding the Key Pair name.Required

Output

A JSON object containing multiple rows of results:

  • has_error: True/False
  • error: message/null
  • result: Instance Details
966966

Start an Instance

Start an instance of Amazon EC2 that was previously stopped.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
EC2 Instance ID Column nameColumn name from parent table holding the Instance ID.Required

Output

A JSON object containing multiple rows of results:

  • has_error: True/False
  • error: message/null
594594

Stop an Instance

Stop an instance of Amazon EC2.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
EC2 Instance ID Column nameColumn name from parent table holding the Instance ID.Required

Output

A JSON object containing multiple rows of results:

  • has_error: True/False
  • error: message/null
594594

Describe Instances

Action will describe one or more of your instances.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
Filters in JSONColumn name that contains filters in JSON format.
Example: [{"Name": "instance-type","Values": ["t2.micro", "t3.micro"]}].
Required

Output

A JSON object containing multiple rows of results:

  • has_error: True/False
  • error: message/null
  • result: Instances details
912912

Describe Security Groups

Action will describe one or more of your security groups.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
Filters in JSONColumn name that contains filters in JSON format.
Example: [{"Name": "instance-type","Values": ["t2.micro", "t3.micro"]}].
Required

Output

A JSON object containing multiple rows of results:

  • has_error: True/False
  • error: message/null
  • result: Security groups details.
800800

Add IP to Security Group

Action will add IP to a security group.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
Security group name or idColumn name that contains security group name or ID.Required
IP AddressColumn name that contains IP address.Required
IP ProtocolColumn name that contains IP protocol.Required
From PortColumn name that contains from the port.Required
To PortColumn name that contains to port.Required

Output

A JSON object containing multiple rows of results:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure Message
15221522

Remove IP from Security Group

Action will add IP to a security group.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
Security group name or idColumn name that contains security group name or ID.Required
IP AddressColumn name that contains IP address.Required
IP ProtocolColumn name that contains IP protocol.Required
From PortColumn name that contains from the port.Required
To PortColumn name that contains to port.Required

Output

A JSON object containing multiple rows of results:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure Message
15121512

Release Notes

  • v1.0.10 - Used NextToken in the following actions: Describe Instances and Describe Security Group.

© 2017-2021 LogicHub®. All Rights Reserved.