Skip to content

Commit

Permalink
adding us-east-1 provider alias for public ecr
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverjfletcher committed Nov 30, 2023
1 parent 8a2fcaf commit cb22c17
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions patterns/blueprint-vpc-lattice/cluster1/main.tf
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cb22c17

Please sign in to comment.