diff --git a/README.md b/README.md
index 8cc881881..45a191af8 100644
--- a/README.md
+++ b/README.md
@@ -189,13 +189,13 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 3.15 |
+| [aws](#provider\_aws) | >= 3.28 |
## Modules
diff --git a/examples/complete-vpc/README.md b/examples/complete-vpc/README.md
index a393ed874..4acc80200 100644
--- a/examples/complete-vpc/README.md
+++ b/examples/complete-vpc/README.md
@@ -22,13 +22,13 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 3.15 |
+| [aws](#provider\_aws) | >= 3.28 |
## Modules
diff --git a/examples/complete-vpc/main.tf b/examples/complete-vpc/main.tf
index 042c83a7f..6ce367f7b 100644
--- a/examples/complete-vpc/main.tf
+++ b/examples/complete-vpc/main.tf
@@ -46,8 +46,9 @@ module "vpc" {
customer_gateways = {
IP1 = {
- bgp_asn = 65112
- ip_address = "1.2.3.4"
+ bgp_asn = 65112
+ ip_address = "1.2.3.4"
+ device_name = "some_name"
},
IP2 = {
bgp_asn = 65112
diff --git a/examples/complete-vpc/versions.tf b/examples/complete-vpc/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/complete-vpc/versions.tf
+++ b/examples/complete-vpc/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/ipv6/README.md b/examples/ipv6/README.md
index 1370c3f52..b7ae18733 100644
--- a/examples/ipv6/README.md
+++ b/examples/ipv6/README.md
@@ -20,7 +20,7 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
diff --git a/examples/ipv6/versions.tf b/examples/ipv6/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/ipv6/versions.tf
+++ b/examples/ipv6/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/issues/README.md b/examples/issues/README.md
index 38054b05d..ff541a3ac 100644
--- a/examples/issues/README.md
+++ b/examples/issues/README.md
@@ -25,7 +25,7 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
diff --git a/examples/issues/versions.tf b/examples/issues/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/issues/versions.tf
+++ b/examples/issues/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/manage-default-vpc/README.md b/examples/manage-default-vpc/README.md
index 946c253d0..2863e276e 100644
--- a/examples/manage-default-vpc/README.md
+++ b/examples/manage-default-vpc/README.md
@@ -22,7 +22,7 @@ Run `terraform destroy` when you don't need these resources.
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
diff --git a/examples/manage-default-vpc/versions.tf b/examples/manage-default-vpc/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/manage-default-vpc/versions.tf
+++ b/examples/manage-default-vpc/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/network-acls/README.md b/examples/network-acls/README.md
index b9fa8d7ad..26834dce4 100644
--- a/examples/network-acls/README.md
+++ b/examples/network-acls/README.md
@@ -24,7 +24,7 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
diff --git a/examples/network-acls/versions.tf b/examples/network-acls/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/network-acls/versions.tf
+++ b/examples/network-acls/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/outpost/README.md b/examples/outpost/README.md
index fb914fbbe..51ce3067a 100644
--- a/examples/outpost/README.md
+++ b/examples/outpost/README.md
@@ -24,13 +24,13 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 3.15 |
+| [aws](#provider\_aws) | >= 3.28 |
## Modules
diff --git a/examples/outpost/versions.tf b/examples/outpost/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/outpost/versions.tf
+++ b/examples/outpost/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/secondary-cidr-blocks/README.md b/examples/secondary-cidr-blocks/README.md
index 7efc729e5..29715df89 100644
--- a/examples/secondary-cidr-blocks/README.md
+++ b/examples/secondary-cidr-blocks/README.md
@@ -22,7 +22,7 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
diff --git a/examples/secondary-cidr-blocks/versions.tf b/examples/secondary-cidr-blocks/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/secondary-cidr-blocks/versions.tf
+++ b/examples/secondary-cidr-blocks/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/simple-vpc/README.md b/examples/simple-vpc/README.md
index e6d15fcc6..692d5077a 100644
--- a/examples/simple-vpc/README.md
+++ b/examples/simple-vpc/README.md
@@ -26,7 +26,7 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
diff --git a/examples/simple-vpc/versions.tf b/examples/simple-vpc/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/simple-vpc/versions.tf
+++ b/examples/simple-vpc/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/examples/vpc-flow-logs/README.md b/examples/vpc-flow-logs/README.md
index 3be36b032..10d782ae5 100644
--- a/examples/vpc-flow-logs/README.md
+++ b/examples/vpc-flow-logs/README.md
@@ -24,14 +24,14 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
| [random](#requirement\_random) | >= 2 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 3.15 |
+| [aws](#provider\_aws) | >= 3.28 |
| [random](#provider\_random) | >= 2 |
## Modules
diff --git a/examples/vpc-flow-logs/versions.tf b/examples/vpc-flow-logs/versions.tf
index 0edb5746f..2b46d6e06 100644
--- a/examples/vpc-flow-logs/versions.tf
+++ b/examples/vpc-flow-logs/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
random = {
diff --git a/examples/vpc-separate-private-route-tables/README.md b/examples/vpc-separate-private-route-tables/README.md
index e106b2447..264e99fac 100644
--- a/examples/vpc-separate-private-route-tables/README.md
+++ b/examples/vpc-separate-private-route-tables/README.md
@@ -22,7 +22,7 @@ Note that this example may create resources which can cost money (AWS Elastic IP
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
diff --git a/examples/vpc-separate-private-route-tables/versions.tf b/examples/vpc-separate-private-route-tables/versions.tf
index d692f71c8..7045f6d16 100644
--- a/examples/vpc-separate-private-route-tables/versions.tf
+++ b/examples/vpc-separate-private-route-tables/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/main.tf b/main.tf
index 2cf550bd4..d66d8311e 100644
--- a/main.tf
+++ b/main.tf
@@ -1215,9 +1215,10 @@ resource "aws_route_table_association" "public" {
resource "aws_customer_gateway" "this" {
for_each = var.customer_gateways
- bgp_asn = each.value["bgp_asn"]
- ip_address = each.value["ip_address"]
- type = "ipsec.1"
+ bgp_asn = each.value["bgp_asn"]
+ ip_address = each.value["ip_address"]
+ device_name = lookup(each.value, "device_name", null)
+ type = "ipsec.1"
tags = merge(
{
diff --git a/modules/vpc-endpoints/README.md b/modules/vpc-endpoints/README.md
index 6f60b1fbe..13b15fbdd 100644
--- a/modules/vpc-endpoints/README.md
+++ b/modules/vpc-endpoints/README.md
@@ -56,13 +56,13 @@ module "endpoints" {
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
-| [aws](#requirement\_aws) | >= 3.15 |
+| [aws](#requirement\_aws) | >= 3.28 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 3.15 |
+| [aws](#provider\_aws) | >= 3.28 |
## Modules
diff --git a/modules/vpc-endpoints/versions.tf b/modules/vpc-endpoints/versions.tf
index d692f71c8..7045f6d16 100644
--- a/modules/vpc-endpoints/versions.tf
+++ b/modules/vpc-endpoints/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}
diff --git a/versions.tf b/versions.tf
index d692f71c8..7045f6d16 100644
--- a/versions.tf
+++ b/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 3.15"
+ version = ">= 3.28"
}
}
}