-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
34 lines (28 loc) · 812 Bytes
/
Copy pathoutputs.tf
File metadata and controls
34 lines (28 loc) · 812 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
30
31
32
33
34
output "vpc_id" {
description = "ID of the VPC"
value = aws_vpc.main.id
}
output "private_subnet_ids" {
description = "IDs of the private subnets"
value = aws_subnet.private[*].id
}
output "public_subnet_ids" {
description = "IDs of the public subnets"
value = aws_subnet.public[*].id
}
output "alb_dns_name" {
description = "DNS name of the Application Load Balancer"
value = aws_lb.web.dns_name
}
output "ec2_instance_id" {
description = "ID of the EC2 instance"
value = aws_instance.secure_ec2.id
}
output "ec2_private_ip" {
description = "Private IP address of the EC2 instance"
value = aws_instance.secure_ec2.private_ip
}
output "security_group_id" {
description = "ID of the security group"
value = aws_security_group.web_sg.id
}