@mbc-cqrs-serverless/cli 1.3.2 → 1.3.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbc-cqrs-serverless/cli",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "a CLI to get started with MBC CQRS serverless framework",
5
5
  "keywords": [
6
6
  "mbc",
@@ -58,5 +58,5 @@
58
58
  "@faker-js/faker": "^8.3.1",
59
59
  "copyfiles": "^2.4.1"
60
60
  },
61
- "gitHead": "c6c63e411acc2c60b6748be433f9c0941f6034a9"
61
+ "gitHead": "e5b2e10fe73ebd89bf26b23942752d4ebe79388e"
62
62
  }
@@ -48,8 +48,12 @@ LOCAL_DDB_ADMIN_PORT=8001
48
48
  # DynamoDB endpoint, useful for local development
49
49
  DYNAMODB_ENDPOINT=http://localhost:${LOCAL_DYNAMODB_PORT:-8000}
50
50
  DYNAMODB_REGION=ap-northeast-1
51
- # set the limit size for `attributes` of object in DDB
52
- ATTRIBUTE_LIMIT_SIZE=389120 # bytes, refer to https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ServiceQuotas.html#limits-attributes
51
+ # Max size (bytes) for `attributes` before S3 offload.
52
+ # Must account for Step Functions 256 KB payload limit: the SFN state passes
53
+ # the DynamoDB event twice (input + context.Execution.Input), so the safe
54
+ # limit is ~(256 KB - overhead) / 2 ≈ 110 KB. Default: 100 KB.
55
+ # DynamoDB item limit is 400 KB — do NOT use that as the reference.
56
+ ATTRIBUTE_LIMIT_SIZE=102400
53
57
  # S3 endpoint, useful for local development
54
58
  S3_ENDPOINT=http://localhost:${LOCAL_S3_PORT:-4566}
55
59
  S3_REGION=ap-northeast-1
@@ -459,7 +459,12 @@ export class InfraStack extends cdk.Stack {
459
459
  APP_NAME: name,
460
460
  LOG_LEVEL: props.config.logLevel?.level || 'info',
461
461
  EVENT_SOURCE_DISABLED: 'false',
462
- ATTRIBUTE_LIMIT_SIZE: '389120',
462
+ // Max size (bytes) for `attributes` before S3 offload.
463
+ // Must account for Step Functions 256 KB payload limit: the SFN state passes
464
+ // the DynamoDB event twice (input + context.Execution.Input), so the safe
465
+ // limit is ~(256 KB - overhead) / 2 ≈ 110 KB. Default: 100 KB.
466
+ // DynamoDB item limit is 400 KB — do NOT use that as the reference.
467
+ ATTRIBUTE_LIMIT_SIZE: '102400',
463
468
  S3_BUCKET_NAME: ddbBucket.bucketName,
464
469
  SFN_COMMAND_ARN: commandSfnArn,
465
470
  SFN_TASK_ARN: taskSfnArn,
@@ -1059,7 +1059,7 @@ exports[`snapshot test for InfraStack 1`] = `
1059
1059
  ],
1060
1060
  },
1061
1061
  "APP_NAME": "",
1062
- "ATTRIBUTE_LIMIT_SIZE": "389120",
1062
+ "ATTRIBUTE_LIMIT_SIZE": "102400",
1063
1063
  "COGNITO_USER_POOL_ID": {
1064
1064
  "Ref": "devuserpool23B1805F",
1065
1065
  },