Skip to content

Commit 4fef4f4

Browse files
committed
Update CHANGELOG
1 parent 5ac10f5 commit 4fef4f4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
### Pending Release
1414

15+
### v2.10.0
16+
17+
- :bug: Update Lambda Access to ECR Policy
18+
1519
### v2.9.0
1620

1721
- :rocket: Include Root in ACM

cloudformation/lib/ecr.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ export default {
5555
'ecr:BatchGetImage',
5656
'ecr:GetDownloadUrlForLayer'
5757
]
58+
},{
59+
Effect: 'Allow',
60+
Principal: {
61+
Service: 'lambda.amazonaws.com'
62+
},
63+
Action: [
64+
'ecr:BatchGetImage',
65+
'ecr:GetDownloadUrlForLayer'
66+
],
67+
Condition: {
68+
StringLike: {
69+
'aws:sourceArn': cf.join(['arn:', cf.partition, ':lambda:', cf.region, ':', cf.accountId, ':function:*'])
70+
}
71+
}
5872
}]
5973
}
6074
}

0 commit comments

Comments
 (0)