Skip to content

Commit

Permalink
Remove ssh command output
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanc committed Jul 31, 2024
1 parent abb2f0b commit 670d78e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions customer-managed/azure/privatelink/terraform/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,3 @@ output "ssh_private_key" {
output "private_key_file_path" {
value = abspath(local_file.private_key.filename)
}

output "ssh_to_ec2_commands" {
description = "SSH to EC2 instance commands"
# Terraform go code has issue to unmarshall the output. So no output if running inside the certification tests.
value = var.resource_prefix == "" ? {
"get_ssh_key_command" : <<EOF
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}
EOF
"ssh_command" : format("ssh -i %s redpanda@%s", local.cert_file, azurerm_public_ip.public_ip.ip_address)
} : null
}

0 comments on commit 670d78e

Please sign in to comment.