moved variables
parent
46e88e057a
commit
f7caadaf84
30
ec2.tf
30
ec2.tf
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in New Issue