Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Ec2 connect tunnel #325

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
24 changes: 24 additions & 0 deletions modules/ec2-connect-tunnel/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,27 @@ output "public_ip" {
value = module.asg.eip_address
description = "Public IP of the tunnel"
}

output "sg_id" {
value = module.tunnel-sg.id
description = "Security group id of the tunnel"
}

output "asg_name" {
value = module.asg.name
description = "`name` exported from the Server `aws_autoscaling_group`"
}

output "asg_iam_role_name" {
value = module.asg.asg_iam_role_name
description = "`name` exported from the Service Data `aws_iam_role`"
}

output "data_volume_name_tag" {
value = module.asg.data_volume_name_tag
description = "Name tag value for attached data volume."
}

output "eip_address" {
value = module.asg.eip_address
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoseD92 this output already exists as public_ip

}
8 changes: 0 additions & 8 deletions modules/ec2-connect-tunnel/sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ module "tunnel-sg" {
extra_tags = var.extra_tags
}

module "ssh-port-sg-rule" {
source = "../single-port-sg"
security_group_id = module.tunnel-sg.id
cidr_blocks = ["0.0.0.0/0"]
port = 22
description = "SSH from anywhere"
}

# security group rule to open egress (outbound from nodes)
module "allow-open-egress" {
source = "../open-egress-sg"
Expand Down