@awsless/awsless 0.0.449 → 0.0.451
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 +17 -5
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/package.json +12 -12
package/dist/bin.js
CHANGED
|
@@ -38,6 +38,7 @@ import { confirm, isCancel, log } from "@clack/prompts";
|
|
|
38
38
|
// src/util/workspace.ts
|
|
39
39
|
import {
|
|
40
40
|
DynamoLockBackend,
|
|
41
|
+
enableDebug,
|
|
41
42
|
S3StateBackend,
|
|
42
43
|
Terraform,
|
|
43
44
|
WorkSpace
|
|
@@ -123,6 +124,7 @@ var createWorkSpace = async (props) => {
|
|
|
123
124
|
const terraform = new Terraform({
|
|
124
125
|
providerLocation: join2(homedir(), `.awsless/providers`)
|
|
125
126
|
});
|
|
127
|
+
enableDebug();
|
|
126
128
|
const aws = await terraform.install("hashicorp", "aws", "5.94.1");
|
|
127
129
|
const workspace = new WorkSpace({
|
|
128
130
|
providers: [
|
|
@@ -2882,18 +2884,21 @@ var domainFeature = defineFeature({
|
|
|
2882
2884
|
name: option(certificate, 0).pipe((r) => r.resourceRecordName),
|
|
2883
2885
|
type: option(certificate, 0).pipe((r) => r.resourceRecordType),
|
|
2884
2886
|
ttl: toSeconds2(minutes3(5)),
|
|
2885
|
-
records: [option(certificate, 0).pipe((r) => r.resourceRecordValue)]
|
|
2887
|
+
records: [option(certificate, 0).pipe((r) => r.resourceRecordValue)],
|
|
2888
|
+
allowOverwrite: true
|
|
2886
2889
|
});
|
|
2887
2890
|
const record2 = new $5.aws.route53.Record(group2, "local-cert-2", {
|
|
2888
2891
|
zoneId: zone.id,
|
|
2889
2892
|
name: option(certificate, 1).pipe((r) => r.resourceRecordName),
|
|
2890
2893
|
type: option(certificate, 1).pipe((r) => r.resourceRecordType),
|
|
2891
2894
|
ttl: toSeconds2(minutes3(5)),
|
|
2892
|
-
records: [option(certificate, 1).pipe((r) => r.resourceRecordValue)]
|
|
2895
|
+
records: [option(certificate, 1).pipe((r) => r.resourceRecordValue)],
|
|
2896
|
+
allowOverwrite: true
|
|
2893
2897
|
});
|
|
2894
2898
|
const validation = new $5.aws.acm.CertificateValidation(group2, "local", {
|
|
2895
2899
|
certificateArn: certificate.arn,
|
|
2896
2900
|
validationRecordFqdns: [record1.fqdn, record2.fqdn]
|
|
2901
|
+
// validationRecordFqdns: [record1.fqdn, record2.fqdn],
|
|
2897
2902
|
});
|
|
2898
2903
|
ctx.shared.add("domain", `certificate-arn`, id, validation.certificateArn);
|
|
2899
2904
|
if (ctx.appConfig.region !== "us-east-1") {
|
|
@@ -2915,14 +2920,16 @@ var domainFeature = defineFeature({
|
|
|
2915
2920
|
name: option(globalCertificate, 0).pipe((r) => r.resourceRecordName),
|
|
2916
2921
|
type: option(globalCertificate, 0).pipe((r) => r.resourceRecordType),
|
|
2917
2922
|
ttl: toSeconds2(minutes3(5)),
|
|
2918
|
-
records: [option(globalCertificate, 0).pipe((r) => r.resourceRecordValue)]
|
|
2923
|
+
records: [option(globalCertificate, 0).pipe((r) => r.resourceRecordValue)],
|
|
2924
|
+
allowOverwrite: true
|
|
2919
2925
|
});
|
|
2920
2926
|
const record22 = new $5.aws.route53.Record(group2, "global-cert-2", {
|
|
2921
2927
|
zoneId: zone.id,
|
|
2922
2928
|
name: option(globalCertificate, 1).pipe((r) => r.resourceRecordName),
|
|
2923
2929
|
type: option(globalCertificate, 1).pipe((r) => r.resourceRecordType),
|
|
2924
2930
|
ttl: toSeconds2(minutes3(5)),
|
|
2925
|
-
records: [option(globalCertificate, 1).pipe((r) => r.resourceRecordValue)]
|
|
2931
|
+
records: [option(globalCertificate, 1).pipe((r) => r.resourceRecordValue)],
|
|
2932
|
+
allowOverwrite: true
|
|
2926
2933
|
});
|
|
2927
2934
|
const globalValidation = new $5.aws.acm.CertificateValidation(
|
|
2928
2935
|
group2,
|
|
@@ -5170,8 +5177,13 @@ var layerFeature = defineFeature({
|
|
|
5170
5177
|
compatibleArchitectures: props.architecture ? [props.architecture] : void 0,
|
|
5171
5178
|
compatibleRuntimes: props.runtimes,
|
|
5172
5179
|
s3Bucket: code.bucket,
|
|
5173
|
-
s3Key: code.key,
|
|
5174
5180
|
s3ObjectVersion: code.versionId,
|
|
5181
|
+
s3Key: code.key.pipe((name) => {
|
|
5182
|
+
if (name.startsWith("/")) {
|
|
5183
|
+
return name.substring(1);
|
|
5184
|
+
}
|
|
5185
|
+
return name;
|
|
5186
|
+
}),
|
|
5175
5187
|
sourceCodeHash: $hash(props.file)
|
|
5176
5188
|
},
|
|
5177
5189
|
{
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.451",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@awsless/dynamodb": "^0.1.5",
|
|
32
32
|
"@awsless/json": "^0.0.8",
|
|
33
|
-
"@awsless/lambda": "^0.0.31",
|
|
34
33
|
"@awsless/iot": "^0.0.3",
|
|
35
|
-
"@awsless/s3": "^0.0.20",
|
|
36
34
|
"@awsless/mqtt": "^0.0.2",
|
|
37
|
-
"@awsless/
|
|
35
|
+
"@awsless/lambda": "^0.0.31",
|
|
38
36
|
"@awsless/redis": "^0.0.13",
|
|
39
|
-
"@awsless/
|
|
40
|
-
"@awsless/validate": "^0.0.19",
|
|
37
|
+
"@awsless/sns": "^0.0.10",
|
|
41
38
|
"@awsless/ssm": "^0.0.7",
|
|
39
|
+
"@awsless/validate": "^0.0.19",
|
|
40
|
+
"@awsless/open-search": "^0.0.17",
|
|
41
|
+
"@awsless/s3": "^0.0.20",
|
|
42
42
|
"@awsless/weak-cache": "^0.0.1",
|
|
43
|
-
"@awsless/
|
|
43
|
+
"@awsless/sqs": "^0.0.8"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -116,14 +116,14 @@
|
|
|
116
116
|
"zip-a-folder": "^3.1.6",
|
|
117
117
|
"zod": "^3.24.2",
|
|
118
118
|
"zod-to-json-schema": "^3.24.3",
|
|
119
|
-
"@awsless/code": "^0.0.10",
|
|
120
119
|
"@awsless/duration": "^0.0.3",
|
|
120
|
+
"@awsless/formation": "^0.0.68",
|
|
121
|
+
"@awsless/graphql": "^0.0.9",
|
|
122
|
+
"@awsless/json": "^0.0.8",
|
|
121
123
|
"@awsless/ts-file-cache": "^0.0.12",
|
|
122
|
-
"@awsless/validate": "^0.0.19",
|
|
123
|
-
"@awsless/formation": "^0.0.66",
|
|
124
124
|
"@awsless/size": "^0.0.2",
|
|
125
|
-
"@awsless/
|
|
126
|
-
"@awsless/
|
|
125
|
+
"@awsless/validate": "^0.0.19",
|
|
126
|
+
"@awsless/code": "^0.0.10"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
129
|
"@node-rs/bcrypt": "^1.10.5"
|