first commit
This commit is contained in:
commit
ff79f4fd31
3 changed files with 226 additions and 0 deletions
19
outputs.tf
Normal file
19
outputs.tf
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
description "SSH Public Key (OpenSSH format)"
|
||||
}
|
||||
|
||||
output "ubuntu_instance_public_ip" {
|
||||
value = aws_instance.ubuntu_instance.public_ip
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue