deploy/test-environments/modules/aws/ec2/output.tf (12 lines of code) (raw):
output "aws_instance_cloudbeat_public_ip" {
description = "AWS EC2 instance public IP"
value = aws_instance.cloudbeat.public_ip
}
output "cloudbeat_ssh_cmd" {
description = "Use this command SSH into the ec2 instance"
value = "ssh -i ${local.cloudbeat_private_key_file} ${local.ec2_username}@${aws_instance.cloudbeat.public_ip}"
}
output "ec2_ssh_key" {
description = "EC2 ssh key path"
value = local.cloudbeat_private_key_file
}