moved variables

terraform
Daniel Mikula 2023-05-22 07:58:19 +02:00
parent 46e88e057a
commit f7caadaf84
2 changed files with 29 additions and 30 deletions

30
ec2.tf
View File

@ -1,33 +1,3 @@
variable "instance_type" {
type = string
default = "t2.nano"
}
variable "instance_name" {
type = string
default = "k3s-box"
}
variable "instance_ami" {
type = string
default = "ami-0889a44b331db0194" # amazon linux us-east-1
}
variable "availability_zone" {
type = string
default = "us-east-1a"
}
variable "create_ebs_block_device" {
type = bool
default = false
}
variable "enable_ingress_http" {
type = bool
default = false
}
resource "aws_instance" "k3s_box" {
ami = var.instance_ami
instance_type = var.instance_type

29
variables.tf Normal file
View File

@ -0,0 +1,29 @@
variable "instance_type" {
type = string
default = "t2.nano"
}
variable "instance_name" {
type = string
default = "k3s-box"
}
variable "instance_ami" {
type = string
default = "ami-0889a44b331db0194" # amazon linux us-east-1
}
variable "availability_zone" {
type = string
default = "us-east-1a"
}
variable "create_ebs_block_device" {
type = bool
default = false
}
variable "enable_ingress_http" {
type = bool
default = false
}