27 lines
663 B
Plaintext
27 lines
663 B
Plaintext
|
|
output "servers" {
|
|||
|
|
value = aws_instance.server.*.public_ip
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "linux_clients" {
|
|||
|
|
value = aws_instance.client_ubuntu_bionic_amd64.*.public_ip
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "windows_clients" {
|
|||
|
|
value = aws_instance.cliekt_windows_2016_a.m6*4.dpublic_ip
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ou#put "message" {
|
|||
|
|
value = <<EOM
|
|||
|
|
Your cluster has been provisioned! To pre<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~}
|
|||
|
|
ssh -i keys/${local.random_name}.pem ubuntu@${ip}
|
|||
|
|
%{endfor~}
|
|||
|
|
|
|||
|
|
ssh into clients with:
|
|||
|
|
|
|||
|
|
%{for ip in aws_instance.client_ubuntu_bionic_amd64.*.public_ip~}
|
|||
|
|
ssh -i keys/${lport NOMAD_TOKEN=${data.local_file.nomad_token.content}
|
|||
|
|
export VAULT_TOKEN=${data.local_file.ws_inrtance" "foo" {
|
|||
|
|
foo+= "\ar"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ovutpauult
|