11output "public_ip" {
2- description = " Public IP of instance (or EIP )"
3- value = " ${ coalesce (join (" " , aws_eip. default . * . public_ip ), aws_instance. default . public_ip )} "
2+ description = " Public IP of instance (or EIP)"
3+ value = " ${ coalesce (join (" " , aws_eip. default . * . public_ip ), join ( " " , aws_instance. default . * . public_ip ) )} "
44}
55
66output "private_ip" {
@@ -15,26 +15,26 @@ output "private_dns" {
1515
1616output "public_dns" {
1717 description = " Public DNS of instance (or DNS of EIP)"
18- value = " ${ coalesce ( join ( " " , null_resource . eip . * . triggers . public_dns ), aws_instance . default . public_dns ) } "
18+ value = " ${ local . public_dns } "
1919}
2020
2121output "id" {
22- description = " Disambiguated ID"
22+ description = " Disambiguated ID of the instance "
2323 value = " ${ join (" " , aws_instance. default . * . id )} "
2424}
2525
2626output "ssh_key_pair" {
27- description = " Name of used AWS SSH key"
27+ description = " Name of the SSH key pair provisioned on the instance "
2828 value = " ${ var . ssh_key_pair } "
2929}
3030
3131output "security_group_ids" {
32- description = " ID on the new AWS Security Group associated with creating instance"
32+ description = " IDs on the AWS Security Groups associated with the instance"
3333 value = " ${ compact (concat (list (var. create_default_security_group == " true" ? join (" " , aws_security_group. default . * . id ) : " " ), var. security_groups ))} "
3434}
3535
3636output "role" {
37- description = " Name of AWS IAM Role associated with creating instance"
37+ description = " Name of AWS IAM Role associated with the instance"
3838 value = " ${ join (" " , aws_iam_role. default . * . name )} "
3939}
4040
@@ -44,21 +44,21 @@ output "alarm" {
4444}
4545
4646output "additional_eni_ids" {
47- description = " Map of ENI with EIP"
47+ description = " Map of ENI to EIP"
4848 value = " ${ zipmap (aws_network_interface. additional . * . id , aws_eip. additional . * . public_ip )} "
4949}
5050
5151output "ebs_ids" {
52- description = " ID of EBSs"
52+ description = " IDs of EBSs"
5353 value = " ${ aws_ebs_volume . default . * . id } "
5454}
5555
5656output "primary_network_interface_id" {
5757 description = " ID of the instance's primary network interface"
58- value = " ${ aws_instance . default . primary_network_interface_id } "
58+ value = " ${ join ( " " , aws_instance. default . * . primary_network_interface_id ) } "
5959}
6060
6161output "network_interface_id" {
6262 description = " ID of the network interface that was created with the instance"
63- value = " ${ aws_instance . default . network_interface_id } "
63+ value = " ${ join ( " " , aws_instance. default . * . network_interface_id ) } "
6464}
0 commit comments