Removal of ssh_key_pair_path on additional servers, as only a keypair name is needed to launch the additional instances (created by the first instance and re-used)
Update AWS module output to avoid invalid output when a key is re-used
│ Error: Invalid function argument
│
│ on ../../../../modules/infra/aws/outputs.tf line 29, in output "ssh_key":
│ 29: value = var.create_ssh_key_pair ? tls_private_key.ssh_private_key[0].private_key_openssh : (var.ssh_key_pair_path != null ? file(pathexpand(var.ssh_key_pair_path)) : var.ssh_key)
│ ├────────────────
│ │ while calling file(path)
│ │ var.ssh_key_pair_path is "..../recipes/upstream/aws/rke2/xxxx-ssh_private_key.pem"
│
│ Invalid value for "path" parameter: no file exists at "/..../recipes/upstream/aws/rke2/xxx-ssh_private_key.pem"; this function works only
ssh_key_pair_path
on additional servers, as only a keypair name is needed to launch the additional instances (created by the first instance and re-used)