From 2678126baefc7eef1335ec531df2bdf064aff932 Mon Sep 17 00:00:00 2001 From: namse Date: Sun, 3 Dec 2023 09:58:13 +0000 Subject: [PATCH] Support ecr pull --- oioi/cdk/lib/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oioi/cdk/lib/index.ts b/oioi/cdk/lib/index.ts index 38ac816d5..b7fc6a5cb 100644 --- a/oioi/cdk/lib/index.ts +++ b/oioi/cdk/lib/index.ts @@ -215,13 +215,13 @@ docker login --username AWS --password-stdin public.ecr.aws actions: [ "ecr-public:GetAuthorizationToken", "ecr:GetAuthorizationToken", + "ecr:BatchGetImage", + "ecr:BatchCheckLayerAvailability", + "ecr:GetDownloadUrlForLayer", + "sts:GetServiceBearerToken", ], resources: ["*"], }), - new cdk.aws_iam.PolicyStatement({ - actions: ["sts:GetServiceBearerToken"], - resources: ["*"], - }), ], }), },