@ts-cloud/core 0.5.6 → 0.5.7

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/dist/index.js CHANGED
@@ -46042,7 +46042,10 @@ function composeServerlessAppTemplate(opts) {
46042
46042
  DatabaseName: "app",
46043
46043
  MasterUsername: Fn2.sub("{{resolve:secretsmanager:${DbSecret}:SecretString:username}}"),
46044
46044
  MasterUserPassword: Fn2.sub("{{resolve:secretsmanager:${DbSecret}:SecretString:password}}"),
46045
- ServerlessV2ScalingConfiguration: { MinCapacity: 0.5, MaxCapacity: 4 },
46045
+ ServerlessV2ScalingConfiguration: {
46046
+ MinCapacity: app.database?.minCapacity ?? 0.5,
46047
+ MaxCapacity: app.database?.maxCapacity ?? 4
46048
+ },
46046
46049
  DBSubnetGroupName: Fn2.ref("DbSubnetGroup"),
46047
46050
  VpcSecurityGroupIds: [Fn2.getAtt("DataSecurityGroup", "GroupId")]
46048
46051
  }
package/dist/types.d.ts CHANGED
@@ -1659,6 +1659,10 @@ export interface ServerlessAppConfig {
1659
1659
  database?: {
1660
1660
  connection?: 'rds-proxy' | 'aurora-serverless' | 'rds';
1661
1661
  cluster?: string;
1662
+ /** Aurora Serverless v2 minimum capacity (ACUs). @default 0.5 */
1663
+ minCapacity?: number;
1664
+ /** Aurora Serverless v2 maximum capacity (ACUs). @default 4 */
1665
+ maxCapacity?: number;
1662
1666
  };
1663
1667
  /** Cache attachment. DynamoDB cache table is the zero-NAT default. */
1664
1668
  cache?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-cloud/core",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "type": "module",
5
5
  "description": "Core CloudFormation generation library for ts-cloud",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
@@ -31,7 +31,7 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@ts-cloud/aws-types": "0.5.6"
34
+ "@ts-cloud/aws-types": "0.5.7"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^5.9.3"