@devramps/cli 0.1.21 → 0.1.22

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 +36 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -270,7 +270,7 @@ var MultiStackProgress = class {
270
270
  const filled = Math.round(this.barWidth * percentage);
271
271
  const empty = this.barWidth - filled;
272
272
  const bar = "\u2588".repeat(filled) + "\u2591".repeat(empty);
273
- const typeLabel = this.getTypeLabel(stackType).padEnd(5);
273
+ const typeLabel = this.getTypeLabel(stackType).padEnd(6);
274
274
  const accountLabel = `${accountId} ${region.padEnd(12)}`;
275
275
  const countLabel = `${completed}/${total}`;
276
276
  const displayName = stackName.padEnd(this.maxStackNameLen);
@@ -2342,6 +2342,38 @@ var DOCKER_IMPORT_PERMISSIONS = {
2342
2342
  resources: ["*"]
2343
2343
  };
2344
2344
 
2345
+ // src/permissions/lambda-deploy.ts
2346
+ var LAMBDA_DEPLOY_PERMISSIONS = {
2347
+ actions: [
2348
+ // Update function code (S3 bundle or container image)
2349
+ "lambda:UpdateFunctionCode",
2350
+ // Poll for update completion
2351
+ "lambda:GetFunctionConfiguration",
2352
+ "lambda:GetFunction"
2353
+ ],
2354
+ resources: ["*"]
2355
+ };
2356
+
2357
+ // src/permissions/lambda-invoke.ts
2358
+ var LAMBDA_INVOKE_PERMISSIONS = {
2359
+ actions: [
2360
+ // Invoke the Lambda function
2361
+ "lambda:InvokeFunction"
2362
+ ],
2363
+ resources: ["*"]
2364
+ };
2365
+
2366
+ // src/permissions/cloudfront-invalidate.ts
2367
+ var CLOUDFRONT_INVALIDATE_PERMISSIONS = {
2368
+ actions: [
2369
+ // Create invalidation
2370
+ "cloudfront:CreateInvalidation",
2371
+ // Poll for invalidation completion
2372
+ "cloudfront:GetInvalidation"
2373
+ ],
2374
+ resources: ["*"]
2375
+ };
2376
+
2345
2377
  // src/permissions/custom.ts
2346
2378
  function getCustomPermissions(stepType) {
2347
2379
  verbose(
@@ -2359,6 +2391,9 @@ var PERMISSIONS_REGISTRY = {
2359
2391
  "DEVRAMPS:EKS:DEPLOY": EKS_DEPLOY_PERMISSIONS,
2360
2392
  "DEVRAMPS:EKS:HELM": EKS_HELM_PERMISSIONS,
2361
2393
  "DEVRAMPS:ECS:DEPLOY": ECS_DEPLOY_PERMISSIONS,
2394
+ "DEVRAMPS:LAMBDA:DEPLOY": LAMBDA_DEPLOY_PERMISSIONS,
2395
+ "DEVRAMPS:LAMBDA:INVOKE": LAMBDA_INVOKE_PERMISSIONS,
2396
+ "DEVRAMPS:CLOUDFRONT:INVALIDATE": CLOUDFRONT_INVALIDATE_PERMISSIONS,
2362
2397
  // Artifact mirroring steps (CI/CD account -> deployment account)
2363
2398
  "DEVRAMPS:MIRROR:ECR": MIRROR_ECR_PERMISSIONS,
2364
2399
  "DEVRAMPS:MIRROR:S3": MIRROR_S3_PERMISSIONS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devramps/cli",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "DevRamps CLI - Bootstrap AWS infrastructure for CI/CD pipelines",
5
5
  "main": "dist/index.js",
6
6
  "bin": {