aws / aws/aws-cdk

AppStagingSynthesizer: Execution role misses ECR access

Open
#27,007 4 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/app-staging-synthesizer-alpha bug effort/small p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
74

Description

### Describe the bug

Using AppStagingSynthesizer lambda execution roles miss access to ECR. In this way Lambdas fail after a while with "The function does not have permission to access the specified image."
![image](https://github.com/aws/aws-cdk/assets/19632501/d3748310-cb9e-4c08-9e34-2401d4bf4b89)

### Expected Behavior

Access to ECR, so that images can be pulled to Lambda.

### Current Behavior

No access to ECR

### Reproduction Steps

Deploy a lambda, wait.

### CDK CLI Version

2.94.0 (build 987c329)

### Node.js Version

v18.17.1

### OS

Mac OS

### Language

Typescript

Contributor guide

Open the contributing guide

Research direction

Start by locating AppStagingSynthesizer's Lambda execution-role generation and inspect the deployed role policy for container-image access. Reproduce the issue by deploying a Lambda and waiting for the reported image-permission failure; done means the generated execution role permits the Lambda image to be pulled from ECR.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.