feat: moved gitea terraform to this repository

This commit is contained in:
2025-01-11 22:39:30 -05:00
parent 88b8e2e7d2
commit 895650a89e
19 changed files with 423 additions and 0 deletions

25
terraform/main.tf Normal file
View File

@@ -0,0 +1,25 @@
data "aws_iam_instance_profile" "ssm" {
name = "SSMInstanceProfile"
}
# The Gitea instance.
resource "aws_instance" "gitea" {
# ami = data.aws_ami.amazon-linux-2.id
ami = "ami-0adec96dc0cdc7bca"
instance_type = "t4g.nano"
subnet_id = module.vpc.private_subnets[0]
user_data = file("install.sh")
user_data_replace_on_change = true
iam_instance_profile = data.aws_iam_instance_profile.ssm.name
root_block_device {
volume_type = "gp3"
volume_size = 8
}
tags = {
Name = "Codebase: Gitea"
}
}