forked from clouddrove/terraform-aws-ec2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
65 lines (53 loc) · 1.68 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
65
#Module : EC2
#Description : Terraform module to create an EC2 resource on AWS with Elastic IP Addresses # and Elastic Block Store.
output "instance_id" {
value = aws_instance.default.*.id
description = "The instance ID."
}
output "arn" {
value = aws_instance.default.*.arn
description = "The ARN of the instance."
}
output "az" {
value = aws_instance.default.*.availability_zone
description = "The availability zone of the instance."
}
output "public_ip" {
value = concat(aws_eip.default.*.public_ip, aws_instance.default.*.public_ip, [""])
description = "Public IP of instance (or EIP)."
}
output "private_ip" {
value = aws_instance.default.*.private_ip
description = "Private IP of instance."
}
output "placement_group" {
value = join("", aws_instance.default.*.placement_group)
description = "The placement group of the instance."
}
output "key_name" {
value = join("", aws_instance.default.*.key_name)
description = "The key name of the instance."
}
output "ipv6_addresses" {
value = aws_instance.default.*.ipv6_addresses
sensitive = true
description = "A list of assigned IPv6 addresses."
}
output "vpc_security_group_ids" {
value = aws_instance.default.*.vpc_security_group_ids
sensitive = true
description = "The associated security groups in non-default VPC."
}
output "subnet_id" {
value = aws_instance.default.*.subnet_id
sensitive = true
description = "The EC2 subnet ID."
}
output "instance_count" {
value = var.instance_count
description = "The count of instances."
}
output "tags" {
value = module.labels.tags
description = "The instance ID."
}