Skip to content

Commit

Permalink
fix: unable to trigger ECR image auto deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickeypeng committed Feb 27, 2024
1 parent 1f30b5d commit 6f9f20b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,13 @@ export class Service extends cdk.Resource implements iam.IGrantable {
assumedBy: new iam.ServicePrincipal('build.apprunner.amazonaws.com'),
});
accessRole.addToPrincipalPolicy(new iam.PolicyStatement({
actions: ['ecr:GetAuthorizationToken'],
actions: [
'ecr:BatchCheckLayerAvailability',
'ecr:BatchGetImage',
'ecr:DescribeImages',
'ecr:GetAuthorizationToken',
'ecr:GetDownloadUrlForLayer'
],
resources: ['*'],
}));
this.accessRole = accessRole;
Expand Down

0 comments on commit 6f9f20b

Please sign in to comment.