-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
64 lines (53 loc) · 1.42 KB
/
outputs.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Compute
#
output "instance" {
value = aws_instance.main
}
output "aws_instance_private_ip" {
description = "Contains the instance private IP address."
value = aws_instance.main.private_ip
}
output "aws_instance_public_ip" {
description = "Contains the instance public IP address."
value = aws_eip.this.*.public_ip
}
output "aws_instance_type" {
description = "The type of the Instance."
value = aws_instance.main.instance_type
}
output "aws_instance_ami" {
description = "The AMI of the Instance."
value = aws_instance.main.ami
}
output "aws_instance_key_name" {
description = "The ssh key pair name of the Instance."
value = aws_instance.main.key_name
}
output "aws_instance_volume_tags" {
description = "The root EBS volume tags of the instace."
value = aws_instance.main.volume_tags
}
#
# Security
#
output "aws_instance_iam_profile" {
description = "The IAM instance profile of the EC2."
value = aws_instance.main.iam_instance_profile
}
output "aws_instance_assume_role_name" {
description = "The IAM instance profile of the EC2."
value = var.instance_profile == "" ? aws_iam_role.basic_instance_assume_role[0].name : ""
}
output "security_group" {
value = aws_security_group.main
}
#
# DNS
#
output "dns_record_private" {
value = aws_route53_record.main_private.*.name
}
output "dns_record_public" {
value = aws_route53_record.main_public.*.name
}