From f7caadaf848487ec45cfe5cc915f04181637f9f4 Mon Sep 17 00:00:00 2001 From: Daniel Mikula Date: Mon, 22 May 2023 07:58:19 +0200 Subject: [PATCH] moved variables --- ec2.tf | 30 ------------------------------ variables.tf | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 30 deletions(-) create mode 100644 variables.tf diff --git a/ec2.tf b/ec2.tf index 5b01e0d..806875b 100644 --- a/ec2.tf +++ b/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 diff --git a/variables.tf b/variables.tf new file mode 100644 index 0000000..24288ed --- /dev/null +++ b/variables.tf @@ -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 +} \ No newline at end of file