AWS EC2 Create VPC VERSION 1


This handler uses the AWS REST API to create a VPC for AWS. The input takes a CIDR and an Instance Tenancy options as input values. For Instance Tenancy, a value of 'default' means that instances can be launched with any tenancy; a value of 'dedicated' means all instances launched into the VPC are launched as dedicated tenancy instances regardless of the tenancy assigned to the instance at launch. Dedicated tenancy instances run on single-tenant hardware.

The Dry Run parameter validates user permissions and inputs. If it is set to true, an error will always be thrown by the handler before completing the handler action. Error response will be 'DryRunOperation' if the account has proper permissions and inputs; 'UnauthorizedOperation' if the account does not have proper permissions.


Parameters

NameDescription
Dry RunDry run validates user permissions and inputs without completing the EC2 action (true or false).
CIDR BlockThe network range for the VPC, in CIDR notation.
Instance TenancyThe supported tenancy options for instances launched into the VPC are default, dedicated, or host.

Sample Configuration

NameDescription
Dry Runfalse
CIDR Block10.0.0.0/16
Instance Tenancydefault

Results

NameSample Result
VPC IDThe ID of the VPC
VPC StateThe current state of the VPC
VPC CIDR BlockThe primary IPv4 CIDR block for the VPC
VPC DHCP Options IDThe ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC)
VPC TagsAny tags assigned to the VPC
VPC Instance TenancyThe allowed tenancy of instances launched into the VPC
VPC Is DefaultIndicates whether the VPC is the default VPC

Changelog

AWS EC2 Create VPC V1 (2017-08-22)

* Initial version. See README for details.