Infrastructure components: - VPC with single public subnet (10.0.0.0/16) - Security group (SSH/HTTP/HTTPS from anywhere) - EC2 instance (t3.medium, Ubuntu 24.04, 30GB encrypted gp3) - S3 bucket for backups (versioned, encrypted) - IAM role with S3FullAccess for EC2 - Route 53 DNS (gitea.poll-streams.com → EC2) - Ed25519 SSH key generation via Terraform
12 lines
259 B
HCL
12 lines
259 B
HCL
variable "aws_region" {
|
|
description = "AWS region for all resources"
|
|
type = string
|
|
default = "eu-central-1"
|
|
}
|
|
|
|
variable "project_name" {
|
|
description = "Project name for resource naming"
|
|
type = string
|
|
default = "qvest-task"
|
|
}
|