Skip to content

Commit 670d78e

Browse files
committed
Remove ssh command output
1 parent abb2f0b commit 670d78e

File tree

1 file changed

+0
-11
lines changed
  • customer-managed/azure/privatelink/terraform

1 file changed

+0
-11
lines changed

customer-managed/azure/privatelink/terraform/output.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,3 @@ output "ssh_private_key" {
5252
output "private_key_file_path" {
5353
value = abspath(local_file.private_key.filename)
5454
}
55-
56-
output "ssh_to_ec2_commands" {
57-
description = "SSH to EC2 instance commands"
58-
# Terraform go code has issue to unmarshall the output. So no output if running inside the certification tests.
59-
value = var.resource_prefix == "" ? {
60-
"get_ssh_key_command" : <<EOF
61-
cat terraform.tfstate | jq .outputs.ssh_private_key.value | sed 's/"//g' | awk '{gsub(/\\n/,"\n")}1' > ${local.cert_file}; chmod 600 ${local.cert_file}
62-
EOF
63-
"ssh_command" : format("ssh -i %s redpanda@%s", local.cert_file, azurerm_public_ip.public_ip.ip_address)
64-
} : null
65-
}

0 commit comments

Comments
 (0)