# Outputs output "ec2_public_ip" { description = "Public IP of the EC2 instance" value = aws_eip.sysmonstm.public_ip } output "ec2_instance_id" { description = "EC2 instance ID" value = aws_instance.sysmonstm.id } output "dashboard_url" { description = "URL for the monitoring dashboard" value = "http://${aws_eip.sysmonstm.public_ip}:8000" } output "grpc_endpoint" { description = "gRPC endpoint for collectors" value = "${aws_eip.sysmonstm.public_ip}:50051" } output "sqs_queue_url" { description = "SQS queue URL for metrics" value = var.enable_lambda_pipeline ? aws_sqs_queue.metrics[0].url : null } output "s3_bucket" { description = "S3 bucket for metric backups" value = var.enable_s3_backup ? aws_s3_bucket.metrics[0].bucket : null } output "ssh_command" { description = "SSH command to connect to the instance" value = var.ec2_key_name != "" ? "ssh -i ${var.ec2_key_name}.pem ec2-user@${aws_eip.sysmonstm.public_ip}" : "Use SSM Session Manager" }