Launch EC2 Instance

This is an interactive task that allows the user to configure & launch a new EC2 instance.

An email approval step is included before the instance is launched.

Integrations

Email Configuration

This task contains an email approval step that requires SMTP to be configured in the PPA appliance.

Instance AMI & Region

By default the playbook is configured to use the Amazon Linux AMI in the London (eu-west-2) region.

You can change both the AMI ID & EC2 region on lines 17 & 18 of the playbook.

Instance Tags

A default list of tags is included in the playbook on line 10.

The user will be asked to supply a value for each tag.

You can change this list to suit your use case.

Required Vault Details

AWS

  • Access key ID
  • Secret access key

The key must have permissions to:

  • Read instances & instance types
  • Read key pairs
  • Launch instances

PPA will add these to Vault for you when you first run the task (see Vault Config Wizard for more).

What the Task Does

Once started this task will:

  • Ask the user to select an instance type
  • Prompt the user for an instance name
  • Ask the user to select a key pair
  • Prompt for a value for each instance tag specified in tag_names (line 10)
  • Present the new instance configuration & ask the user to confirm or cancel
  • Prompt for an approval email address (see below for more information)
  • Launch the new instance if the request was approved

Approval Request

This task requires email approval before the instance is launched.

For demo purposes the task will ask the user for an email address to send the approval request to.

In production this should be changed to an alternative method, such as…

  • Configuring a list of approvers in the playbook
  • Looking up the user's manager in Active Directory (via the manager attribute)
  • Sending the approval email to members of an Active Directory security group
  • Using a private Slack channel

… or many others.

View playbook on Github
Product Boot Screen

Get PPA for free!

Start automating your estate with a free 30 day trial today. No signup required!

Get PPA Express

Documentation


Theale Court
11-13 High Street, Theale
Reading, Berkshire, RG7 5AH
United Kingdom
+44 (0) 118 324 2444

Logo

Copyright 2020 Osirium Ltd.