2024-11-09 19:23:43 +00:00
|
|
|
output "ubuntu_ami" {
|
|
|
|
value = data.aws_ami.ubuntu
|
|
|
|
description = "AMI selected to build instance from"
|
|
|
|
}
|
|
|
|
|
|
|
|
output "private_key" {
|
|
|
|
value = tls_private_key.ssh_key.private_key_pem
|
|
|
|
description = "SSH Private Key (PEM format)"
|
|
|
|
}
|
|
|
|
|
|
|
|
output "public_key" {
|
|
|
|
value = tls_private_key.ssh_key.public_key_openssh
|
2024-11-09 19:33:44 +00:00
|
|
|
description = "SSH Public Key (OpenSSH format)"
|
2024-11-09 19:23:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
output "ubuntu_instance_public_ip" {
|
|
|
|
value = aws_instance.ubuntu_instance.public_ip
|
|
|
|
}
|
|
|
|
|