-
Notifications
You must be signed in to change notification settings - Fork 4
/
output.tf
43 lines (36 loc) · 1.09 KB
/
output.tf
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
35
36
37
38
39
40
41
42
43
output "instance_id" {
value = aws_instance.application.id
description = "Instance Id"
}
output "private_ip" {
value = aws_instance.application.private_ip
description = "Private IP"
}
output "private_dns" {
value = aws_instance.application.private_dns
description = "Private DNS"
}
output "public_ip" {
value = aws_instance.application.public_ip
description = "Public IP"
}
output "primary_network_interface_id" {
value = aws_instance.application.primary_network_interface_id
description = "Primary Network Interface Id"
}
output "security_group_ids" {
value = length(local.security_group_configs) > 0 ? aws_security_group.sg[*].id : var.security_group_ids
description = "Security Group Ids"
}
output "bastion_role_name" {
value = aws_iam_role.bastion_ssm_role.name
description = "Bastion Role Name"
}
output "bastion_role_arn" {
value = aws_iam_role.bastion_ssm_role.arn
description = "Bastion Role ARN"
}
output "region" {
value = data.aws_region.current.name
description = "Region the bastion was deployed to"
}