add terraform config for deploying to ec2

This commit is contained in:
Nana Janashia
2020-12-19 10:56:16 +01:00
parent 6123875bc8
commit df4698ad04
4 changed files with 159 additions and 4 deletions

21
terraform/variables.tf Normal file
View File

@@ -0,0 +1,21 @@
variable vpc_cidr_block {
default = "10.0.0.0/16"
}
variable subnet_cidr_block {
default = "10.0.10.0/24"
}
variable avail_zone {
default = "eu-west-3a"
}
variable env_prefix {
default = "dev"
}
variable my_ip {
default = "212.124.154.110/32"
}
variable instance_type {
default = "t2.micro"
}
variable region {
default = "eu-west-3"
}