This module can be used to deploy an AWS ec2 instance as a bastion server.
env
- The environment namevpc_id
- The id of the vpcname
- The name of the bastion instance. Defaults tobastion
subnet_id
- The id of the public subnetkey_name
- The name of the key pair used to sshinstance_type
- The instance type. Defaults tot2.nano
ami
- The ami image. Defaults toami-1a66887
module "bastion" {
source = "github.com/fierceventures/terraform-bastion"
vpc_id = "${module.vpc.id}"
subnet_id = "${module.public_subnet.id}"
key_name = "${aws_key_pair.key_pair.key_name}"
env = "test"
name = "bastion"
instance_type = "t2.micro"
ami = "ami-1a668878"
}
ip
- The public ip of the bastion instance
Created and maintained by Fierce Ventures