Skip to content

Commit

Permalink
fix(vpc): revert vpc eip type change and update the version constrain…
Browse files Browse the repository at this point in the history
…ts for eip type (#17)
  • Loading branch information
Young-ook authored Oct 30, 2023
1 parent 157d78d commit 56f6707
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ resource "aws_route" "ingw" {
resource "aws_eip" "ingw" {
for_each = !local.default_vpc && local.private ? (local.single_ngw ? toset([local.selected_az]) : toset(local.azs)) : toset([])
tags = merge(local.default-tags, var.tags, )
domain = "vpc"
vpc = true
}

resource "aws_nat_gateway" "ingw" {
Expand Down
15 changes: 15 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## requirements

terraform {
# Terraform test is an experimental features introduced in Terraform CLI v0.15.0.
# So, you'll need to upgrade to v0.15.0 or later to use terraform test.
required_version = ">= 0.15"

# The 'domain' parameter was migrated from a 'Computed' attribute to an input attribute in the aws_eip resource in version 5.0.0
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
}

0 comments on commit 56f6707

Please sign in to comment.