Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Your use of this download is governed by Stonebranch’s Terms of Use, which are available at https://www.stonebranch.com/integration-hub/Terms-and-Privacy/Terms-of-Use/

Introduction

This Universal Task allows customers to create an EC2 instance with parameters, either in task form, or by simply creating an EC2 instance from the existing AWS launch template. This task also offers the option to additionally install a Linux/UNIX Universal Agent in the newly provisioned EC2 Instance.

Overview

  • The task interacts with the AWS platform via a Python boto3 module.

  • All AWS credentials remain encrypted.

  • Customers can also install/configure a Linux Universal Agent for each EC2 instance, enabling the Universal Controller to instantly communicate with the newly created instance. (NOTE: only Linux Universal Agent is supported at the moment.)

  • This task also lets customers create multiple EC2 instances with the same configuration. New instances can also be tagged.

  • It allows customers to create a new keypair or use an existing one for the new EC2 instance.

  • This task also enables options for additional EBS volume and encryption, as well as detailed monitoring. 

...

Overview

...

Image Removed

Software Requirements

This integration requires an Universal Agent and a Python runtime to execute the Universal Task against AWS EC2 Instance.

Software Requirements for /wiki/spaces/UC71x/pages/5178050 and /wiki/spaces/UC71x/pages/5180675

  • Requires Python 2.7 or Python 3.6 or higher. Tested with the Universal Agent bundled Python distribution.

  • Python modules required:

    • requests

    • Boto3

Software Requirements for Universal Agent

  • Universal Agent for Windows x64 Version 6.6.0.0 and later with python options installed

  • Universal Agent for Linux Version 6.6.0.0 and later with python options installed

Software Requirements for Universal Controller

  • Universal Controller Version 6.7.0.0 and later

Software Requirements for the Application to be Scheduled

  • The Server Running the Universal Agent needs to have Python 2.7.x or 3.6.x installed

  • AWS IAM Credentials -Access Key, Secret Access key and Region with EC2 set of permissions

  • This universal task for the AWS EC2-start-stop-terminate has been tested with the agent bundled with python 3.6 and boto3 module

Technical Considerations

  • Consider using this universal task either with universal agent bundled with python(uapy) and also having boto3 module within this environment or a python environment (py) in a host where universal agent is installed with boto3 module in it.

  • AWS IAM credentials (Access Key, Secret Access key and Region) should be with the Appropriate access for handling AWS EC2 instances.

  • With the current version of this Universal Task, Universal Agent can be installed only in Linux EC2 Instance.

AWS Create EC2 Instance (with Universal Agent) Key Features

...

Feature

...

Description

...

Create New EC2 Instance

...

Creates a EC2 Instance based on the parameters that are provided in the form

...

Launch EC2 from template

...

Create a EC2 Instance based on a template in AWS

Import AWS Create EC2 Instance (with Universal Agent) Downloadable Universal Template

To use this downloadable Universal Template, you first must perform the following steps:

  1. This Universal Task requires the /wiki/spaces/UC71x/pages/5178443 feature. Check that the/wiki/spaces/UC71x/pages/5177877 system property has been set to true.

  2. Copy or Transfer the Universal Template file to a directory that can be accessed by the Universal Controller Tomcat user.

  3. In the Universal Controller UI, select Configuration > Universal Templates to display the current list of /wiki/spaces/UC71x/pages/5178054.

  4. Right-click any column header on the list to display an Action menu.

  5. Select Import from the menu, enter the directory containing the Universal Template file(s) that you want to import, and click OK.

When the files have been imported successfully, the Universal Template will appear on the list.

Configure AWS Create EC2 Instance (with Universal Agent) Universal Task

For the new Universal Task type, create a new task, and enter the task-specific details that were created in the Universal Template.

Field Descriptions for AWS Create EC2 Instance (with Universal Agent) Universal Task

...

Field

...

Description

...

AWS-DEFAULT-REGION

...

AWS Region kept as credential

...

AWS-SECRET-ACCESS-KEY

...

AWS Secret Key

...

AWS-ACCESS-KEY-ID

...

AWS Access Key

...

Launch Instance Option

...

Select either launch from template or create a brand new ec2 instance with the parameter supplied in the form

...

LaunchTemplateName

...

Mandatory if launch_instance_option=” Launch from template”

...

AWS_IMAGE_ID

...

Provide the AWS machine ID ,Mandatory if launch_instance_option=” new_instance”

...

Keypair option

...

PEM file creation choice , Select either existing Key pair or New Key pair

...

EC2-KEYPAIR-Path & Name

...

Provide Keypair file name and the path (Do not give the extension) for new and for existing keypair just the name

...

EC2 Instance Type

...

provide ec2-instance type like t2. Micro , if Launch from template = “Create New Instance”

...

Minimum Count

...

Minimum Count of instance that need to be created, if Launch from template = “Create New Instance”

...

Max Count

...

Max count of instance that needs to be created, if Launch from template = “Create New Instance”

...

associate_public_ip

...

If a public IP needs to be created when a instance is created

...

SubnetId

...

Provide subnetID where the instance to be associated within AWS

...

Availability Zone

...

Provide Availability Zone where the instance to be associated within AWS

...

Security Group ID

...

provide security group ids, if multiple ID's then separate by comma

...

Instance Tag name

...

EC2 Instance Tag Name

...

iam_instance_profile_name

...

If applicable provide the IAM Instance Profile Name

...

device_name

...

Provide the device name; for example, /dev/sda1

...

ebs_volume_size

...

Provide EBS Volume size

...

EBS Vol. Type

...

Select either standard or io1 or gp2 or sc1 or st1

...

EBS Vol. Encyption

...

Check if encryption needs needed

...

EC2 Monitoring

...

Check this box if detailed monitoring required

...

Install Universal Agent

...

Check this box if you would need to install universal agent with this new EC2 instance created

...

Agent Download URL

...

Provide the path to download the agent URL, if install universal agent option is selected

...

Universal Agent Install OS

...

select the OS where universal agent needs to be installed

...

Agent OMS IP

...

Provide the OMS server IP for the universal agent to be connected after installation , if install universal agent option is selected

...

Use Public IP for SSH

...

Select if you would need to use the public or provide IP for SSH

...

os_user_id

...

Provide the OS user ID that will be used to make SSH connection

Examples for AWS Create EC2 Instance (with Universal Agent) Universal Tasks

New EC2 Instance Creation

Image Removed

Launch Instance with Launch Template

Image Removed

Document References

This document references the following documents:

...

Name

...

Location

...

Description

...

Universal Templates

...

https://docs.stonebranch.com/confluence/display/UC71x/Universal+Templates

...

User documentation for creating Universal Templates in the Universal Controller user interface.

...

Universal Tasks

...

https://docs.stonebranch.com/confluence/display/UC71x/Universal+Tasks

...