This Terraform configuration provisions AWS ec2 instances.
No modules.
Name |
Description |
Type |
Default |
Required |
ami_filter |
AMI filter - e.g. ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-* |
string |
"ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*" |
no |
ami_id |
Optional AMI ID - use this if not blank string, otherwise use AMI per ami_filter and ami_owner. |
string |
"" |
no |
ami_owner |
Owner of AMI - e.g. 099720109477 |
string |
"099720109477" |
no |
foundation_workspace |
Name of workspace from which to get information on VPC in which to provision resources. |
string |
n/a |
yes |
global_tags |
Default tags to apply to AWS resources. Meant to be defined via Variable Sets in your Terraform Cloud organization, but can be overriden if needed. |
map(string) |
{} |
no |
hcp_packer_image_bucket_name |
The slug of the HCP Packer Registry image bucket to pull from. |
string |
"" |
no |
hcp_packer_image_channel |
The channel that points to the version of the image you want. |
string |
"" |
no |
instance_count |
Number of instances to provision. |
number |
1 |
no |
instance_type |
Instance size. |
string |
"t2.medium" |
no |
local_tags |
Local tags to apply to cloud resources. |
map(string) |
{} |
no |
org |
Terraform Cloud/Enterprise Organization Name |
string |
n/a |
yes |
owner_cidr_blocks |
CIDR blocks that will be allowed to access our instance. |
list(string) |
[ "0.0.0.0/0" ] |
no |
prefix |
Naming prefix |
string |
n/a |
yes |
region |
AWS Region in which to deploy our instance. |
string |
"us-east-1" |
no |
root_volume_size |
Root volume size in GB. |
number |
50 |
no |
root_volume_type |
Root volume type. |
string |
"gp2" |
no |
sg_workspace |
Name of workspace from which to get foundational security groups to use. |
string |
n/a |
yes |
ssh_key_name |
Name of SSH key in AWS region. |
string |
n/a |
yes |