forked from ansible-lockdown/RHEL9-CIS
added availibility zone
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
f863e97a92
commit
d83ee52a98
3 changed files with 14 additions and 6 deletions
5
.github/workflows/github_networks.tf
vendored
5
.github/workflows/github_networks.tf
vendored
|
|
@ -16,8 +16,9 @@ resource "aws_internet_gateway" "IGW" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_subnet" "publicsubnets" {
|
resource "aws_subnet" "publicsubnets" {
|
||||||
vpc_id = aws_vpc.Main.id
|
vpc_id = aws_vpc.Main.id
|
||||||
cidr_block = var.public_subnets
|
cidr_block = var.public_subnets
|
||||||
|
availability_zone = var.availability_zone
|
||||||
tags = {
|
tags = {
|
||||||
Environment = "${var.environment}"
|
Environment = "${var.environment}"
|
||||||
Name = "${var.namespace}-pubsub"
|
Name = "${var.namespace}-pubsub"
|
||||||
|
|
|
||||||
9
.github/workflows/terraform.tfvars
vendored
9
.github/workflows/terraform.tfvars
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
// vars should be loaded by OSname.tfvars
|
// vars should be loaded by OSname.tfvars
|
||||||
aws_region = "us-east-1"
|
availability_zone = "us-east-1b"
|
||||||
ami_os = var.ami_os
|
aws_region = "us-east-1"
|
||||||
ami_username = var.ami_username
|
ami_os = var.ami_os
|
||||||
instance_tags = var.instance_tags
|
ami_username = var.ami_username
|
||||||
|
instance_tags = var.instance_tags
|
||||||
|
|
|
||||||
6
.github/workflows/variables.tf
vendored
6
.github/workflows/variables.tf
vendored
|
|
@ -6,6 +6,12 @@ variable "aws_region" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "availability_zone" {
|
||||||
|
description = "List of availability zone in the region"
|
||||||
|
default = "us-east-1b"
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
variable "instance_type" {
|
variable "instance_type" {
|
||||||
description = "EC2 Instance Type"
|
description = "EC2 Instance Type"
|
||||||
default = "t3.micro"
|
default = "t3.micro"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue