Name | Version |
---|---|
terraform | >= 1.0 |
aws | >= 5.0.0 |
Name | Version |
---|---|
aws | >= 5.0.0 |
template | n/a |
tls | n/a |
Name | Source | Version |
---|---|---|
bastion | terraform-aws-modules/ec2-instance/aws | ~> 3.0 |
ec2_security_group | terraform-aws-modules/security-group/aws | 4.17.1 |
ec2messages_vpce_sg | terraform-aws-modules/security-group/aws | 4.17.1 |
ssm_vpce_sg | terraform-aws-modules/security-group/aws | 4.17.1 |
ssmmessages_vpce_sg | terraform-aws-modules/security-group/aws | 4.17.1 |
vpc_endpoints | ../../modules/vpc-endpoints | n/a |
Name | Type |
---|---|
aws_iam_instance_profile.bastion_instance_profile | resource |
aws_iam_policy.ec2_instance_connect_policy | resource |
aws_iam_role.bastion_host_iam_role | resource |
aws_iam_role_policy.bastion_host_iam_role | resource |
aws_iam_role_policy_attachment.bastion_host_instance_connect_policy_attachment | resource |
aws_key_pair.ec2_ssh | resource |
aws_ssm_parameter.ssh_key | resource |
tls_private_key.ec2_ssh | resource |
aws_ami.ubuntu | data source |
template_file.user_data | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
allowed_cidrs | Allow these CIDR blocks to instance | string |
null |
no |
ami | AMI to use for the instance - will default to latest Ubuntu | string |
"" |
no |
create_vpc_endpoints | Create VPC endpoints for SSM, EC2 Messages, and SSM Messages | bool |
true |
no |
instance_type | EC2 instance type/size - the default is not part of free tier! | string |
"t3.nano" |
no |
key_name | SSH key name to use for the instance | string |
"" |
no |
name | Name to be used on all the resources as identifier | string |
"" |
no |
private_subnets | List of private subnets in which the EC2 instance is to be created. | list(string) |
n/a | yes |
root_volume_size | Size of the root volume in GB | number |
8 |
no |
root_volume_type | Type of the root volume | string |
"gp2" |
no |
tags | Any extra tags to assign to objects | map(any) |
{} |
no |
vpc_endpoint_security_group_ids | List of security group IDs to attach to the VPC endpoints. Will be ignored if create_vpc_endpoints is false. | list(string) |
[] |
no |
vpc_id | VPC id in which the EC2 instance is to be created. | string |
n/a | yes |
Name | Description |
---|---|
instance_id | n/a |
instance_profile | n/a |
security_group_id | n/a |
ssm_parameter_ssh_key | n/a |