feat: submit id
This commit is contained in:
@@ -7,7 +7,7 @@ resource "aws_instance" "gitea" {
|
|||||||
# ami = data.aws_ami.amazon-linux-2.id
|
# ami = data.aws_ami.amazon-linux-2.id
|
||||||
ami = "ami-0adec96dc0cdc7bca"
|
ami = "ami-0adec96dc0cdc7bca"
|
||||||
instance_type = "t4g.nano"
|
instance_type = "t4g.nano"
|
||||||
subnet_id = module.vpc.private_subnets[0]
|
subnet_id = var.subnet
|
||||||
|
|
||||||
user_data = file("install.sh")
|
user_data = file("install.sh")
|
||||||
user_data_replace_on_change = true
|
user_data_replace_on_change = true
|
||||||
|
|||||||
@@ -16,4 +16,9 @@ variable "boot_key" {
|
|||||||
variable "boot_role" {
|
variable "boot_role" {
|
||||||
type = string
|
type = string
|
||||||
description = "The name of the role for boot access."
|
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."
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user