Skip to content

Commit

Permalink
feat: replace deprecated aws_eip arg vpc (bool) by domain = "vpc"
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires hashicorp/aws provider 5.0.0 or higher
  • Loading branch information
mgerlach committed May 31, 2023
1 parent 2ea82d7 commit fe990a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.0.0"
version = ">= 5.0.0"
}
}
required_version = ">=1.0.0"
Expand Down
6 changes: 3 additions & 3 deletions vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ resource "aws_subnet" "private" {
}

resource "aws_eip" "this" {
count = var.create_networking_config ? length(var.public_subnet_cidrs) : 0
vpc = true
tags = merge({
count = var.create_networking_config ? length(var.public_subnet_cidrs) : 0
domain = "vpc"
tags = merge({
Name = "mwaa-${var.environment_name}-eip-${count.index}"
}, var.tags)
}
Expand Down

0 comments on commit fe990a9

Please sign in to comment.