qvest-task/terraform/outputs.tf
aviyadeveloper 22504b886b feat: Automated Gitea deployment with SSL
- Deployed PostgreSQL 18.4 + Gitea 1.22.6 via Docker Compose
- Configured Nginx reverse proxy with Let's Encrypt SSL
- Created Ansible playbooks for full automation (site.yml)
- Database credentials in AWS Secrets Manager
- Production deployment at https://gitea.poll-streams.com
2026-06-08 19:51:24 +02:00

51 lines
1.5 KiB
HCL

# Outputs
output "ec2_public_ip" {
description = "Public IP address of the EC2 instance"
value = aws_instance.gitea.public_ip
}
output "ec2_instance_id" {
description = "EC2 instance ID"
value = aws_instance.gitea.id
}
output "s3_bucket_name" {
description = "Name of the S3 backup bucket"
value = aws_s3_bucket.backups.id
}
output "ssh_private_key_path" {
description = "Path to the SSH private key"
value = local_file.private_key.filename
}
output "ssh_connection_command" {
description = "Command to SSH into the EC2 instance"
value = "ssh -i ${local_file.private_key.filename} -o StrictHostKeyChecking=accept-new ubuntu@${aws_instance.gitea.public_ip}"
}
output "ssh_connection_via_domain" {
description = "SSH command using domain name (use after DNS propagates)"
value = "ssh -i ${local_file.private_key.filename} -o StrictHostKeyChecking=accept-new ubuntu@gitea.poll-streams.com"
}
output "gitea_domain" {
description = "Gitea domain name"
value = "gitea.poll-streams.com"
}
output "gitea_url" {
description = "Gitea URL (will be HTTPS after SSL setup)"
value = "https://gitea.poll-streams.com"
}
output "db_secret_arn" {
description = "ARN of the database credentials secret in Secrets Manager"
value = aws_secretsmanager_secret.db_credentials.arn
}
output "db_secret_name" {
description = "Name of the database credentials secret"
value = aws_secretsmanager_secret.db_credentials.name
}