From 001e604d3d6cb83ae15ccbbddcf88c672f8066ea Mon Sep 17 00:00:00 2001 From: Andrew LeCody Date: Thu, 17 Aug 2023 12:56:17 -0500 Subject: [PATCH] fix(eks): helm private ecr in govcloud --- .../aws-cdk-lib/aws-eks/lib/kubectl-handler/helm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-eks/lib/kubectl-handler/helm/__init__.py b/packages/aws-cdk-lib/aws-eks/lib/kubectl-handler/helm/__init__.py index 6f16c7b7d8334..ce5fe63925637 100644 --- a/packages/aws-cdk-lib/aws-eks/lib/kubectl-handler/helm/__init__.py +++ b/packages/aws-cdk-lib/aws-eks/lib/kubectl-handler/helm/__init__.py @@ -100,7 +100,7 @@ def helm_handler(event, context): def get_oci_cmd(repository, version): # Generates OCI command based on pattern. Public ECR vs Private ECR are treated differently. - private_ecr_pattern = 'oci://(?P\d+.dkr.ecr.(?P[a-z]+-[a-z]+-\d).amazonaws.com)*' + private_ecr_pattern = 'oci://(?P\d+.dkr.ecr.(?P[a-z0-9\-]+).amazonaws.com)*' public_ecr_pattern = 'oci://(?Ppublic.ecr.aws)*' private_registry = re.match(private_ecr_pattern, repository).groupdict()