@awsless/awsless 0.0.637 → 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/app.json +1 -1
- package/dist/app.stage.json +1 -1
- package/dist/bin.js +40 -32
- package/dist/build-json-schema.js +3 -3
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/rpc/HASH +1 -1
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/stack.json +1 -1
- package/dist/stack.stage.json +1 -1
- package/package.json +10 -10
package/dist/bin.js
CHANGED
|
@@ -1666,7 +1666,7 @@ var RpcSchema = z24.record(
|
|
|
1666
1666
|
lock: false
|
|
1667
1667
|
})),
|
|
1668
1668
|
z24.object({
|
|
1669
|
-
function: FunctionSchema,
|
|
1669
|
+
function: FunctionSchema.describe("The RPC function to execute."),
|
|
1670
1670
|
lock: z24.boolean().describe(
|
|
1671
1671
|
[
|
|
1672
1672
|
"Specify if the function should be locked on the `lockKey` returned from the auth function.",
|
|
@@ -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
|
|
1871
|
-
"retain: Retains
|
|
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.
|
|
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(
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
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
|
-
|
|
5365
|
-
|
|
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);
|
|
@@ -728,7 +728,7 @@ var RpcSchema = z20.record(
|
|
|
728
728
|
lock: false
|
|
729
729
|
})),
|
|
730
730
|
z20.object({
|
|
731
|
-
function: FunctionSchema,
|
|
731
|
+
function: FunctionSchema.describe("The RPC function to execute."),
|
|
732
732
|
lock: z20.boolean().describe(
|
|
733
733
|
[
|
|
734
734
|
"Specify if the function should be locked on the `lockKey` returned from the auth function.",
|
|
@@ -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
|
|
933
|
-
"retain: Retains
|
|
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
|
package/dist/prebuild/rpc/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e88dbfaefba22668be356305b684c743e037b04a
|
|
Binary file
|