@devramps/cli 0.1.27 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +16 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2534,6 +2534,22 @@ function generateStageStackTemplate(options) {
2534
2534
  { Key: "ArtifactType", Value: artifact.type }
2535
2535
  ]
2536
2536
  );
2537
+ template.Resources[resourceId].Properties.RepositoryPolicyText = {
2538
+ Version: "2012-10-17",
2539
+ Statement: [
2540
+ {
2541
+ Sid: "AllowLambdaPull",
2542
+ Effect: "Allow",
2543
+ Principal: {
2544
+ Service: "lambda.amazonaws.com"
2545
+ },
2546
+ Action: [
2547
+ "ecr:GetDownloadUrlForLayer",
2548
+ "ecr:BatchGetImage"
2549
+ ]
2550
+ }
2551
+ ]
2552
+ };
2537
2553
  ecrOutputs[artifact.name] = { resourceId };
2538
2554
  }
2539
2555
  for (const artifact of bundleArtifacts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devramps/cli",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "DevRamps CLI - Bootstrap AWS infrastructure for CI/CD pipelines",
5
5
  "main": "dist/index.js",
6
6
  "bin": {