Skip to content

Commit

Permalink
Add SSH key as sensitive output
Browse files Browse the repository at this point in the history
  • Loading branch information
ldx committed Aug 25, 2020
1 parent b99a21f commit e20b95e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions deploy/terraform-aws/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
output "node_ip" {
value = aws_instance.k8s_node.public_ip
value = aws_instance.k8s_node.public_ip
description = "Node IP address"
}

output "efs_ip" {
value = aws_efs_mount_target.efs.*.ip_address
value = aws_efs_mount_target.efs.*.ip_address
description = "EFS IP address"
}

output "ssh_key" {
value = length(tls_private_key.ssh_key) > 0 ? tls_private_key.ssh_key[0].private_key_pem : ""
description = "SSH key"
sensitive = true
}

0 comments on commit e20b95e

Please sign in to comment.