This Terraform configuration provisions AWS ec2 instances.
Name | Version |
---|---|
terraform | >= 1.0 |
Name | Version |
---|---|
aws | 3.66.0 |
hcp | 0.20.0 |
terraform | n/a |
No modules.
Name | Type |
---|---|
aws_instance.instance | resource |
aws_ami.ami | data source |
hcp_packer_image.image | data source |
hcp_packer_iteration.iteration | data source |
terraform_remote_state.foundation | data source |
terraform_remote_state.sg | data source |
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) |
[ |
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 |
Name | Description |
---|---|
private_ips | n/a |
public_ips | n/a |