From cb22c177fa09906480c21a40345b388c7ad02334 Mon Sep 17 00:00:00 2001 From: oliverjfletcher Date: Thu, 30 Nov 2023 13:30:32 +1100 Subject: [PATCH] adding us-east-1 provider alias for public ecr --- patterns/blueprint-vpc-lattice/cluster1/main.tf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) mode change 100644 => 100755 patterns/blueprint-vpc-lattice/cluster1/main.tf diff --git a/patterns/blueprint-vpc-lattice/cluster1/main.tf b/patterns/blueprint-vpc-lattice/cluster1/main.tf old mode 100644 new mode 100755 index 9289a8de01..48c57be234 --- a/patterns/blueprint-vpc-lattice/cluster1/main.tf +++ b/patterns/blueprint-vpc-lattice/cluster1/main.tf @@ -2,6 +2,11 @@ provider "aws" { region = local.region } +provider "aws" { + region = "us-east-1" + alias = "virginia" +} + provider "kubernetes" { host = module.eks.cluster_endpoint cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) @@ -29,12 +34,14 @@ provider "helm" { } data "aws_availability_zones" "available" {} -data "aws_ecrpublic_authorization_token" "token" {} +data "aws_ecrpublic_authorization_token" "token" { + provider = aws.virginia +} data "aws_caller_identity" "identity" {} locals { name = basename(path.cwd) - region = "us-west-2" + region = "us-east-1" vpc_cidr = "192.168.48.0/20" azs = slice(data.aws_availability_zones.available.names, 0, 3) @@ -109,7 +116,6 @@ module "vpc" { module "addons" { source = "aws-ia/eks-blueprints-addons/aws" version = "~> 1.0" - cluster_name = module.eks.cluster_name cluster_endpoint = module.eks.cluster_endpoint cluster_version = module.eks.cluster_version