Skip to content

Add permissions for lambda downloads to containers#23

Merged
ethanholz merged 1 commit into
omsf:mainfrom
dwhswenson:fix-lambda-permissions
Feb 25, 2026
Merged

Add permissions for lambda downloads to containers#23
ethanholz merged 1 commit into
omsf:mainfrom
dwhswenson:fix-lambda-permissions

Conversation

@dwhswenson
Copy link
Copy Markdown
Member

Looks like I'd left off some permissions that were needed for a (cold) lambda to pull down the image. Somehow the cron job worked for me once, but not the second time!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ECR repository policies in the Lambda container image workflow so AWS Lambda can pull the image layers during cold starts.

Changes:

  • Expanded the existing ECR repository policy in lambda-image-republish to explicitly allow the Lambda service principal to pull images.
  • Added an ECR repository policy to lambda-image-build granting account push/pull and Lambda image pull permissions.
  • Ensured the build/push step depends on the repository policy being applied.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
modules/lambda-image-republish/main.tf Adds a Lambda service principal pull statement to the destination ECR repository policy.
modules/lambda-image-build/main.tf Introduces an ECR repository policy for the built image repository and wires it into dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dwhswenson dwhswenson requested a review from ethanholz February 24, 2026 17:11
Copy link
Copy Markdown
Contributor

@ethanholz ethanholz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ethanholz ethanholz merged commit 8131e65 into omsf:main Feb 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants