feat: submit id

This commit is contained in:
2025-01-11 22:50:13 -05:00
parent 95f67c07b7
commit 9e806d2f60
2 changed files with 6 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ 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]
subnet_id = var.subnet
user_data = file("install.sh")
user_data_replace_on_change = true

View File

@@ -17,3 +17,8 @@ variable "boot_role" {
type = string
description = "The name of the role for boot access."
}
variable "subnet" {
type = string
description = "The ID of the subnet that the instance will be housed in."
}