@awsless/awsless 0.0.638 → 0.0.639

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/bin.js CHANGED
@@ -1867,8 +1867,8 @@ var AppSchema = z28.object({
1867
1867
  [
1868
1868
  "Configure how your resources are handled when they have to be removed.",
1869
1869
  "",
1870
- "remove: Removes the underlying resource.",
1871
- "retain: Retains resources like S3 stores and DynamoDB tables. Removes everything else."
1870
+ "remove: Removes all underlying resources.",
1871
+ "retain: Retains the following resources: stores, tables, auth, searchs, and caches."
1872
1872
  ].join("\n")
1873
1873
  ),
1874
1874
  // stage: z
@@ -2976,7 +2976,7 @@ var authFeature = defineFeature({
2976
2976
  requireSymbols: props.password.symbols,
2977
2977
  temporaryPasswordValidityDays: toDays3(props.password.temporaryPasswordValidity)
2978
2978
  },
2979
- deletionProtection: ctx.appConfig.protect ? "ACTIVE" : "INACTIVE"
2979
+ deletionProtection: ctx.appConfig.removal === "retain" ? "ACTIVE" : "INACTIVE"
2980
2980
  },
2981
2981
  {
2982
2982
  retainOnDelete: ctx.appConfig.removal === "retain",
@@ -3062,32 +3062,40 @@ var cacheFeature = defineFeature({
3062
3062
  vpcId: ctx.shared.get("vpc", "id"),
3063
3063
  description: name
3064
3064
  });
3065
- const cache = new aws3.elasticache.ServerlessCache(group, "cache", {
3066
- name,
3067
- engine: "valkey",
3068
- dailySnapshotTime: "02:00",
3069
- majorEngineVersion: "8",
3070
- snapshotRetentionLimit: props.snapshotRetentionLimit,
3071
- securityGroupIds: [securityGroup.id],
3072
- subnetIds: ctx.shared.get("vpc", "private-subnets"),
3073
- cacheUsageLimits: [
3074
- {
3075
- dataStorage: props.minStorage || props.maxStorage ? [
3076
- {
3077
- minimum: props.minStorage && toGibibytes(props.minStorage),
3078
- maximum: props.maxStorage && toGibibytes(props.maxStorage),
3079
- unit: "GB"
3080
- }
3081
- ] : [],
3082
- ecpuPerSecond: props.minECPU || props.maxECPU ? [
3083
- {
3084
- minimum: props.minECPU,
3085
- maximum: props.maxECPU
3086
- }
3087
- ] : []
3088
- }
3089
- ]
3090
- });
3065
+ const cache = new aws3.elasticache.ServerlessCache(
3066
+ group,
3067
+ "cache",
3068
+ {
3069
+ name,
3070
+ engine: "valkey",
3071
+ dailySnapshotTime: "02:00",
3072
+ majorEngineVersion: "8",
3073
+ snapshotRetentionLimit: props.snapshotRetentionLimit,
3074
+ securityGroupIds: [securityGroup.id],
3075
+ subnetIds: ctx.shared.get("vpc", "private-subnets"),
3076
+ cacheUsageLimits: [
3077
+ {
3078
+ dataStorage: props.minStorage || props.maxStorage ? [
3079
+ {
3080
+ minimum: props.minStorage && toGibibytes(props.minStorage),
3081
+ maximum: props.maxStorage && toGibibytes(props.maxStorage),
3082
+ unit: "GB"
3083
+ }
3084
+ ] : [],
3085
+ ecpuPerSecond: props.minECPU || props.maxECPU ? [
3086
+ {
3087
+ minimum: props.minECPU,
3088
+ maximum: props.maxECPU
3089
+ }
3090
+ ] : []
3091
+ }
3092
+ ]
3093
+ },
3094
+ {
3095
+ retainOnDelete: ctx.appConfig.removal === "retain",
3096
+ import: ctx.import ? name : void 0
3097
+ }
3098
+ );
3091
3099
  const masterHost = cache.endpoint.pipe((v) => v.at(0).address);
3092
3100
  const masterPort = cache.endpoint.pipe((v) => v.at(0).port);
3093
3101
  new aws3.vpc.SecurityGroupIngressRule(group, "master-rule-ip-v4", {
@@ -5361,8 +5369,8 @@ var searchFeature = defineFeature({
5361
5369
  })
5362
5370
  },
5363
5371
  {
5364
- import: ctx.import ? name : void 0,
5365
- retainOnDelete: ctx.appConfig.removal === "retain"
5372
+ retainOnDelete: ctx.appConfig.removal === "retain",
5373
+ import: ctx.import ? name : void 0
5366
5374
  }
5367
5375
  );
5368
5376
  ctx.addEnv(`SEARCH_${constantCase9(ctx.stack.name)}_${constantCase9(id)}_DOMAIN`, openSearch.endpoint);
@@ -929,8 +929,8 @@ var AppSchema = z24.object({
929
929
  [
930
930
  "Configure how your resources are handled when they have to be removed.",
931
931
  "",
932
- "remove: Removes the underlying resource.",
933
- "retain: Retains resources like S3 stores and DynamoDB tables. Removes everything else."
932
+ "remove: Removes all underlying resources.",
933
+ "retain: Retains the following resources: stores, tables, auth, searchs, and caches."
934
934
  ].join("\n")
935
935
  ),
936
936
  // stage: z
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.638",
3
+ "version": "0.0.639",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -34,22 +34,22 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.1.5",
37
+ "@awsless/clui": "^0.0.8",
37
38
  "@awsless/cloudwatch": "^0.0.1",
38
39
  "@awsless/duration": "^0.0.4",
39
- "@awsless/dynamodb": "^0.3.14",
40
- "@awsless/json": "^0.0.11",
41
- "@awsless/clui": "^0.0.8",
42
40
  "@awsless/iot": "^0.0.3",
43
- "@awsless/open-search": "^0.0.21",
44
- "@awsless/mqtt": "^0.0.2",
41
+ "@awsless/dynamodb": "^0.3.14",
45
42
  "@awsless/lambda": "^0.0.37",
46
- "@awsless/redis": "^0.0.14",
47
- "@awsless/sqs": "^0.0.16",
48
- "@awsless/sns": "^0.0.10",
49
43
  "@awsless/s3": "^0.0.21",
44
+ "@awsless/mqtt": "^0.0.2",
45
+ "@awsless/redis": "^0.0.14",
46
+ "@awsless/open-search": "^0.0.21",
50
47
  "@awsless/validate": "^0.1.5",
51
- "@awsless/weak-cache": "^0.0.1",
52
- "@awsless/ssm": "^0.0.7"
48
+ "@awsless/sns": "^0.0.10",
49
+ "@awsless/sqs": "^0.0.16",
50
+ "@awsless/ssm": "^0.0.7",
51
+ "@awsless/json": "^0.0.11",
52
+ "@awsless/weak-cache": "^0.0.1"
53
53
  },
54
54
  "dependencies": {
55
55
  "@aws-sdk/client-cloudformation": "^3.369.0",
@@ -114,14 +114,14 @@
114
114
  "zod": "^3.24.2",
115
115
  "zod-to-json-schema": "^3.24.3",
116
116
  "@awsless/big-float": "^0.1.5",
117
+ "@awsless/cloudwatch": "^0.0.1",
117
118
  "@awsless/duration": "^0.0.4",
118
119
  "@awsless/json": "^0.0.11",
119
- "@awsless/cloudwatch": "^0.0.1",
120
120
  "@awsless/size": "^0.0.2",
121
121
  "@awsless/scheduler": "^0.0.4",
122
122
  "@awsless/validate": "^0.1.5",
123
- "@awsless/ts-file-cache": "^0.0.12",
124
- "@awsless/clui": "^0.0.8"
123
+ "@awsless/clui": "^0.0.8",
124
+ "@awsless/ts-file-cache": "^0.0.12"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@hono/node-server": "1.19.9",