-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
30 lines (24 loc) · 802 Bytes
/
outputs.tf
File metadata and controls
30 lines (24 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output "vpc_id" {
description = "ID of the created VPC"
value = module.vpc.vpc_id
}
output "public_subnet_ids" {
description = "IDs of the public subnets"
value = module.vpc.public_subnet_ids
}
output "private_subnet_ids" {
description = "IDs of the private subnets"
value = module.vpc.private_subnet_ids
}
output "bastion_public_ip" {
description = "Public IP address of the bastion host"
value = module.bastion.bastion_public_ip
}
output "private_instance_private_ip" {
description = "IP address of private instance"
value = module.vpc.private_instance_private_ip
}
output "ssh_command" {
description = "SSH command to connect to the bastion host"
value = "ssh -i path/to/${var.key_name}.pem ec2-user@${module.bastion.bastion_public_ip}"
}