@awsless/cli 0.0.46-next.41 → 0.0.46-next.42

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/bin.js +14 -17
  2. package/package.json +12 -12
package/dist/bin.js CHANGED
@@ -164644,6 +164644,19 @@ var cacheFeature = defineFeature({
164644
164644
  vpcId: ctx.shared.get("vpc", "id"),
164645
164645
  description: name
164646
164646
  });
164647
+ const dataStorage = props.minStorage || props.maxStorage ? [
164648
+ {
164649
+ minimum: props.minStorage && toGibibytes(props.minStorage),
164650
+ maximum: props.maxStorage && toGibibytes(props.maxStorage),
164651
+ unit: "GB"
164652
+ }
164653
+ ] : [];
164654
+ const ecpuPerSecond = props.minECPU || props.maxECPU ? [
164655
+ {
164656
+ minimum: props.minECPU,
164657
+ maximum: props.maxECPU
164658
+ }
164659
+ ] : [];
164647
164660
  const cache7 = new aws3.elasticache.ServerlessCache(group4, "cache", {
164648
164661
  name,
164649
164662
  engine: "valkey",
@@ -164652,23 +164665,7 @@ var cacheFeature = defineFeature({
164652
164665
  snapshotRetentionLimit: props.snapshotRetentionLimit,
164653
164666
  securityGroupIds: [securityGroup.id],
164654
164667
  subnetIds: ctx.shared.get("vpc", "private-subnets"),
164655
- cacheUsageLimits: [
164656
- {
164657
- dataStorage: props.minStorage || props.maxStorage ? [
164658
- {
164659
- minimum: props.minStorage && toGibibytes(props.minStorage),
164660
- maximum: props.maxStorage && toGibibytes(props.maxStorage),
164661
- unit: "GB"
164662
- }
164663
- ] : [],
164664
- ecpuPerSecond: props.minECPU || props.maxECPU ? [
164665
- {
164666
- minimum: props.minECPU,
164667
- maximum: props.maxECPU
164668
- }
164669
- ] : []
164670
- }
164671
- ]
164668
+ cacheUsageLimits: dataStorage.length > 0 || ecpuPerSecond.length > 0 ? [{ dataStorage, ecpuPerSecond }] : undefined
164672
164669
  }, {
164673
164670
  retainOnDelete: ctx.appConfig.removal === "retain",
164674
164671
  import: ctx.import ? name : undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/cli",
3
- "version": "0.0.46-next.41",
3
+ "version": "0.0.46-next.42",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -26,14 +26,14 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@awsless/big-float": "^0.1.7",
29
- "@awsless/duration": "^0.0.4",
30
- "@awsless/dynamodb": "^0.3.22",
31
29
  "@awsless/json": "^0.0.11",
32
30
  "@awsless/lambda": "^0.0.47",
33
31
  "@awsless/s3": "^0.0.22",
34
32
  "@awsless/validate": "^0.1.7",
35
33
  "@awsless/weak-cache": "^0.0.1",
36
- "awsless": "^0.0.15-next.10"
34
+ "awsless": "^0.0.15-next.10",
35
+ "@awsless/dynamodb": "^0.3.22",
36
+ "@awsless/duration": "^0.0.4"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@aws-sdk/client-cloudformation": "^3.369.0",
@@ -103,24 +103,24 @@
103
103
  "zod": "^3.24.2",
104
104
  "zod-to-json-schema": "^3.24.3",
105
105
  "@awsless/big-float": "^0.1.7",
106
- "@awsless/cloudwatch": "^0.0.1",
106
+ "@awsless/clui": "^0.0.9",
107
107
  "@awsless/duration": "^0.0.4",
108
108
  "@awsless/dynamodb": "^0.3.22",
109
- "@awsless/iot": "^0.0.5",
109
+ "@awsless/cloudwatch": "^0.0.1",
110
110
  "@awsless/json": "^0.0.11",
111
- "@awsless/lambda": "^0.0.47",
111
+ "@awsless/redis": "^0.1.13",
112
+ "@awsless/iot": "^0.0.5",
112
113
  "@awsless/open-search": "^0.0.25",
114
+ "@awsless/lambda": "^0.0.47",
113
115
  "@awsless/s3": "^0.0.22",
114
- "@awsless/scheduler": "^0.0.5",
115
- "@awsless/size": "^0.0.2",
116
116
  "@awsless/sns": "^0.0.11",
117
117
  "@awsless/sqs": "^0.0.24",
118
118
  "@awsless/ssm": "^0.0.8",
119
119
  "@awsless/validate": "^0.1.7",
120
- "@awsless/weak-cache": "^0.0.1",
120
+ "@awsless/scheduler": "^0.0.5",
121
121
  "awsless": "^0.0.15-next.10",
122
- "@awsless/clui": "^0.0.9",
123
- "@awsless/redis": "^0.1.13"
122
+ "@awsless/size": "^0.0.2",
123
+ "@awsless/weak-cache": "^0.0.1"
124
124
  },
125
125
  "scripts": {
126
126
  "test": "bun cli/build-handlers.ts && pnpm vitest",