Skip to content

Commit

Permalink
fix: Don't hardcode region of ASG
Browse files Browse the repository at this point in the history
  • Loading branch information
sugdyzhekov committed Jul 18, 2020
1 parent 4c5f3d5 commit 7178b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "aws_autoscaling_group" "nat_instance" {
desired_capacity = 1
max_size = 1
min_size = 1
availability_zones = ["eu-west-1b"]
availability_zones = [local.az]

launch_template {
id = aws_launch_template.nat_instance.id
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ locals {
instance_type = var.instance_type
public_subnet_ids = [var.public_subnet_id]
private_subnet_cidrs = var.private_subnet_cidrs
az = "${data.aws_region.current.name}b"
}

0 comments on commit 7178b97

Please sign in to comment.