Skip to content

Terraform module that creates an AWS EC2 bastion instance and associated resources.

License

Notifications You must be signed in to change notification settings

gretchenleighmiller/terraform-aws-bastion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_instance.instance resource
aws_security_group.sg resource
aws_security_group_rule.egress resource
aws_security_group_rule.ssh_ingress resource

Inputs

Name Description Type Default Required
ami_id The ID of the bastion AMI. string n/a yes
base_tags A map of tags applied to all bastion resources. map(string) {} no
instance_tags A map of tags applied to the bastion instance. map(string) {} no
instance_type The instance type of the bastion. string "t3.micro" no
name The name of the bastion. Used when naming resources. string "Bastion Server" no
sg_tags A map of tags applied to the bastion Security Group. map(string) {} no
ssh_ingress_cidr The CIDR block from which SSH ingress is opened on the bastion's Security Group. string n/a yes
ssh_port The port on which SSH is served on the bastion. string 22 no
subnet_id The ID of the subnet into which the bastion is placed. string n/a yes
vpc_id The ID of the VPC into which the bastion is placed. string n/a yes

Outputs

Name Description
instance_id The ID of the bastion EC2 instance.
sg_id The ID of the bastion Security Group.

About

Terraform module that creates an AWS EC2 bastion instance and associated resources.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages