4
0
Fork 0

added availibility zone

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-08-05 12:23:32 +01:00
parent f863e97a92
commit d83ee52a98
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB
3 changed files with 14 additions and 6 deletions

View file

@ -18,6 +18,7 @@ resource "aws_internet_gateway" "IGW" {
resource "aws_subnet" "publicsubnets" {
vpc_id = aws_vpc.Main.id
cidr_block = var.public_subnets
availability_zone = var.availability_zone
tags = {
Environment = "${var.environment}"
Name = "${var.namespace}-pubsub"

View file

@ -1,4 +1,5 @@
// vars should be loaded by OSname.tfvars
availability_zone = "us-east-1b"
aws_region = "us-east-1"
ami_os = var.ami_os
ami_username = var.ami_username

View file

@ -6,6 +6,12 @@ variable "aws_region" {
type = string
}
variable "availability_zone" {
description = "List of availability zone in the region"
default = "us-east-1b"
type = string
}
variable "instance_type" {
description = "EC2 Instance Type"
default = "t3.micro"