-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
105 lines (85 loc) · 3.49 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
output "ssh_key" {
description = "ssh key generated by terraform"
sensitive = true
value = tls_private_key.the_key.private_key_pem
}
output "ec2_id" {
description = "The ID of the instance"
value = module.ec2.id
}
output "ec2_arn" {
description = "The ARN of the instance"
value = module.ec2.arn
}
output "ec2_capacity_reservation_specification" {
description = "Capacity reservation specification of the instance"
value = module.ec2.capacity_reservation_specification
}
output "ec2_instance_state" {
description = "The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, `stopped`"
value = module.ec2.instance_state
}
output "ec2_primary_network_interface_id" {
description = "The ID of the instance's primary network interface"
value = module.ec2.primary_network_interface_id
}
output "ec2_private_dns" {
description = "The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC"
value = module.ec2.private_dns
}
output "ec2_public_dns" {
description = "The public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled DNS hostnames for your VPC"
value = module.ec2.public_dns
}
output "ec2_public_ip" {
description = "The public IP address assigned to the instance, if applicable. NOTE: If you are using an aws_eip with your instance, you should refer to the EIP's address directly and not use `public_ip` as this field will change after the EIP is attached"
value = module.ec2.public_ip
}
output "ec2_tags_all" {
description = "A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block"
value = module.ec2.tags_all
}
output "ec2_iam_role_name" {
description = "The name of the IAM role"
value = module.ec2.iam_role_name
}
output "ec2_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = module.ec2.iam_role_arn
}
output "ec2_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = module.ec2.iam_role_unique_id
}
output "ec2_iam_instance_profile_arn" {
description = "ARN assigned by AWS to the instance profile"
value = module.ec2.iam_instance_profile_arn
}
output "ec2_iam_instance_profile_id" {
description = "Instance profile's ID"
value = module.ec2.iam_instance_profile_id
}
output "ec2_iam_instance_profile_unique" {
description = "Stable and unique string identifying the IAM instance profile"
value = module.ec2.iam_instance_profile_unique
}
output "ec2_root_block_device" {
description = "Root block device information"
value = module.ec2.root_block_device
}
output "ec2_ebs_block_device" {
description = "EBS block device information"
value = module.ec2.ebs_block_device
}
output "ec2_ephemeral_block_device" {
description = "Ephemeral block device information"
value = module.ec2.ephemeral_block_device
}
output "ssm_connect_command" {
description = "The AWS CLI command to connect to the instance using Session Manager"
value = "aws ssm start-session --target ${module.ec2.id} --region ${local.region}"
}
output "ssh_connect_command" {
description = "The AWS CLI command to connect to the instance using SSH - if you created a public machine"
value = "ssh -i chrisfu-support.pem ec2-user@${module.ec2.public_ip}"
}