From 73afe8212e0b82243535de9eb22c15fb5427aa3b Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Wed, 22 Feb 2023 17:05:36 -0500 Subject: [PATCH] fix: Use `most_recent = true` when using VPC CNI custom configuration --- examples/ipv4-prefix-delegation/main.tf | 1 + examples/vpc-cni-custom-networking/main.tf | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/ipv4-prefix-delegation/main.tf b/examples/ipv4-prefix-delegation/main.tf index 0434469a3b..418f394d4c 100644 --- a/examples/ipv4-prefix-delegation/main.tf +++ b/examples/ipv4-prefix-delegation/main.tf @@ -59,6 +59,7 @@ module "eks" { # the addon is configured before data plane compute resources are created # See README for further details before_compute = true + most_recent = true # To ensure access to the latest settings provided configuration_values = jsonencode({ env = { # Reference docs https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html diff --git a/examples/vpc-cni-custom-networking/main.tf b/examples/vpc-cni-custom-networking/main.tf index 0885612992..43ac65b121 100644 --- a/examples/vpc-cni-custom-networking/main.tf +++ b/examples/vpc-cni-custom-networking/main.tf @@ -67,6 +67,7 @@ module "eks" { # the addon is configured before data plane compute resources are created # See README for further details before_compute = true + most_recent = true # To ensure access to the latest settings provided configuration_values = jsonencode({ env = { # Reference https://aws.github.io/aws-eks-best-practices/reliability/docs/networkmanagement/#cni-custom-networking