@awsless/awsless 0.0.411 → 0.0.412

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
@@ -8532,8 +8532,8 @@ var SearchsSchema = z28.record(
8532
8532
  type: TypeSchema3.default("t3.small"),
8533
8533
  count: z28.number().int().min(1).default(1),
8534
8534
  version: VersionSchema.default("2.13"),
8535
- storage: StorageSizeSchema.default("10 GB"),
8536
- vpc: z28.boolean().default(false)
8535
+ storage: StorageSizeSchema.default("10 GB")
8536
+ // vpc: z.boolean().default(false),
8537
8537
  })
8538
8538
  ).optional().describe("Define the search instances in your stack. Backed by OpenSearch.");
8539
8539
 
@@ -12922,15 +12922,6 @@ var searchFeature = defineFeature({
12922
12922
  ]
12923
12923
  }
12924
12924
  });
12925
- if (props.vpc) {
12926
- openSearch.setVpc({
12927
- securityGroupIds: [ctx.shared.get(`vpc-security-group-id`)],
12928
- subnetIds: [
12929
- ctx.shared.get("vpc-private-subnet-id-1"),
12930
- ctx.shared.get("vpc-private-subnet-id-2")
12931
- ]
12932
- });
12933
- }
12934
12925
  ctx.addEnv(`SEARCH_${constantCase11(ctx.stack.name)}_${constantCase11(id)}_DOMAIN`, openSearch.domainEndpoint);
12935
12926
  ctx.onStackPolicy((policy) => {
12936
12927
  policy.addStatement({
@@ -786,8 +786,8 @@ var SearchsSchema = z22.record(
786
786
  type: TypeSchema3.default("t3.small"),
787
787
  count: z22.number().int().min(1).default(1),
788
788
  version: VersionSchema.default("2.13"),
789
- storage: StorageSizeSchema.default("10 GB"),
790
- vpc: z22.boolean().default(false)
789
+ storage: StorageSizeSchema.default("10 GB")
790
+ // vpc: z.boolean().default(false),
791
791
  })
792
792
  ).optional().describe("Define the search instances in your stack. Backed by OpenSearch.");
793
793
 
Binary file
package/dist/server.js CHANGED
@@ -467,7 +467,7 @@ var Search = /* @__PURE__ */ createProxy((stack) => {
467
467
  domain,
468
468
  defineTable(tableName, schema) {
469
469
  return define(tableName, schema, () => {
470
- if (!client) client = searchClient({ node: domain }, "es");
470
+ if (!client) client = searchClient({ node: `https://${domain}` }, "es");
471
471
  return client;
472
472
  });
473
473
  }