Skip to content

Commit

Permalink
add description for output.tf in ./modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpat committed Dec 1, 2023
1 parent 9d78c23 commit 0d8db82
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion modules/aws_autoscaling/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# SPDX-License-Identifier: Apache-2.0

output "autoscaler_account" {
value = module.iam_assumable_role_with_oidc.iam_role_arn
description = "ARN of IAM role for cluster-autoscaler."
value = module.iam_assumable_role_with_oidc.iam_role_arn
}
3 changes: 2 additions & 1 deletion modules/aws_ebs_csi/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# SPDX-License-Identifier: Apache-2.0

output "ebs_csi_account" {
value = module.iam_assumable_role_with_oidc.iam_role_arn
description = "ARN of IAM role for ebs-csi-controller Service Account."
value = module.iam_assumable_role_with_oidc.iam_role_arn
}
15 changes: 10 additions & 5 deletions modules/aws_vm/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@
# SPDX-License-Identifier: Apache-2.0

output "private_ip_address" {
value = aws_instance.vm.private_ip
description = "Private IP address associated with the VM."
value = aws_instance.vm.private_ip
}

output "public_ip_address" {
value = var.create_public_ip ? coalesce(aws_eip.eip[0].public_ip, aws_instance.vm.public_ip) : null
description = "Public IP address associated with the VM."
value = var.create_public_ip ? coalesce(aws_eip.eip[0].public_ip, aws_instance.vm.public_ip) : null
}

output "admin_username" {
value = var.vm_admin
description = "Admin username for the VM"
value = var.vm_admin
}

output "private_dns" {
value = aws_instance.vm.private_dns
description = "Private DNS name assigned to the VM."
value = aws_instance.vm.private_dns
}

output "public_dns" {
value = var.create_public_ip ? coalesce(aws_eip.eip[0].public_dns, aws_instance.vm.public_dns) : null
description = "Public DNS name assigned to the VM."
value = var.create_public_ip ? coalesce(aws_eip.eip[0].public_dns, aws_instance.vm.public_dns) : null
}
3 changes: 2 additions & 1 deletion modules/kubeconfig/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# SPDX-License-Identifier: Apache-2.0

output "kube_config" {
value = local_file.kubeconfig.content
description = "Kubernetes cluster authentication information for kubectl."
value = local_file.kubeconfig.content
}

0 comments on commit 0d8db82

Please sign in to comment.