@awsless/awsless 0.0.603 → 0.0.604
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
|
@@ -185,8 +185,8 @@ import promiseLimit from "p-limit";
|
|
|
185
185
|
import { z } from "zod";
|
|
186
186
|
import "@aws-sdk/signature-v4-crt";
|
|
187
187
|
var ImportKeys = createCustomResourceClass("cloudfront-kvs", "import-keys");
|
|
188
|
-
var createCloudFrontKvsProvider = ({
|
|
189
|
-
const client = new CloudFrontKeyValueStoreClient({
|
|
188
|
+
var createCloudFrontKvsProvider = ({ credentials, region }) => {
|
|
189
|
+
const client = new CloudFrontKeyValueStoreClient({ credentials, region });
|
|
190
190
|
const queues = {};
|
|
191
191
|
const getConcurrencyQueue = (arn) => {
|
|
192
192
|
if (!queues[arn]) {
|
|
@@ -340,8 +340,8 @@ var Invalidation = createCustomResourceClass2(
|
|
|
340
340
|
"cloudfront",
|
|
341
341
|
"invalidation"
|
|
342
342
|
);
|
|
343
|
-
var createCloudFrontProvider = ({
|
|
344
|
-
const cloudFront = new CloudFrontClient({
|
|
343
|
+
var createCloudFrontProvider = ({ credentials, region }) => {
|
|
344
|
+
const cloudFront = new CloudFrontClient({ credentials, region });
|
|
345
345
|
return createCustomProvider2("cloudfront", {
|
|
346
346
|
invalidation: {
|
|
347
347
|
async updateResource(props) {
|
|
@@ -413,8 +413,8 @@ import { createCustomProvider as createCustomProvider4, createCustomResourceClas
|
|
|
413
413
|
import { resolveNs } from "node:dns/promises";
|
|
414
414
|
import { z as z4 } from "zod";
|
|
415
415
|
var NsCheck = createCustomResourceClass4("nameservers", "check");
|
|
416
|
-
var createNameServersProvider = ({
|
|
417
|
-
const client = new Route53Client({
|
|
416
|
+
var createNameServersProvider = ({ credentials, region }) => {
|
|
417
|
+
const client = new Route53Client({ credentials, region });
|
|
418
418
|
return createCustomProvider4("nameservers", {
|
|
419
419
|
check: {
|
|
420
420
|
async createResource(props) {
|
|
@@ -561,6 +561,7 @@ var createWorkSpace = async (props) => {
|
|
|
561
561
|
enableDebug();
|
|
562
562
|
}
|
|
563
563
|
await aws.install();
|
|
564
|
+
const cred = await props.credentials();
|
|
564
565
|
const workspace = new WorkSpace({
|
|
565
566
|
providers: [
|
|
566
567
|
createLambdaProvider(props),
|
|
@@ -569,7 +570,10 @@ var createWorkSpace = async (props) => {
|
|
|
569
570
|
createNameServersProvider(props),
|
|
570
571
|
aws(
|
|
571
572
|
{
|
|
572
|
-
|
|
573
|
+
accessKey: cred.accessKeyId,
|
|
574
|
+
secretKey: cred.secretAccessKey,
|
|
575
|
+
// token: cred.sessionToken,
|
|
576
|
+
// profile: props.profile,
|
|
573
577
|
region: props.region,
|
|
574
578
|
maxRetries: 5
|
|
575
579
|
}
|
|
@@ -579,7 +583,10 @@ var createWorkSpace = async (props) => {
|
|
|
579
583
|
),
|
|
580
584
|
aws(
|
|
581
585
|
{
|
|
582
|
-
|
|
586
|
+
accessKey: cred.accessKeyId,
|
|
587
|
+
secretKey: cred.secretAccessKey,
|
|
588
|
+
// token: cred.sessionToken,
|
|
589
|
+
// profile: props.profile,
|
|
583
590
|
region: "us-east-1",
|
|
584
591
|
maxRetries: 5
|
|
585
592
|
},
|
|
@@ -8412,7 +8419,6 @@ var set = (program2) => {
|
|
|
8412
8419
|
const { workspace } = await createWorkSpace({
|
|
8413
8420
|
credentials,
|
|
8414
8421
|
accountId,
|
|
8415
|
-
profile,
|
|
8416
8422
|
region
|
|
8417
8423
|
});
|
|
8418
8424
|
const params = new SsmStore({
|
|
@@ -8630,7 +8636,6 @@ var del2 = (program2) => {
|
|
|
8630
8636
|
const { workspace, state: state2 } = await createWorkSpace({
|
|
8631
8637
|
credentials,
|
|
8632
8638
|
accountId,
|
|
8633
|
-
profile,
|
|
8634
8639
|
region
|
|
8635
8640
|
});
|
|
8636
8641
|
await task("Deleting the stacks to AWS", async (update2) => {
|
|
@@ -9032,7 +9037,6 @@ var deploy = (program2) => {
|
|
|
9032
9037
|
const { workspace, state: state2 } = await createWorkSpace({
|
|
9033
9038
|
credentials,
|
|
9034
9039
|
accountId,
|
|
9035
|
-
profile,
|
|
9036
9040
|
region
|
|
9037
9041
|
});
|
|
9038
9042
|
await log18.task({
|
|
@@ -9088,7 +9092,6 @@ var create = (program2) => {
|
|
|
9088
9092
|
const { workspace } = await createWorkSpace({
|
|
9089
9093
|
credentials,
|
|
9090
9094
|
accountId,
|
|
9091
|
-
profile,
|
|
9092
9095
|
region
|
|
9093
9096
|
});
|
|
9094
9097
|
await workspace.hydrate(app);
|
|
@@ -9229,7 +9232,6 @@ var update = (program2) => {
|
|
|
9229
9232
|
const { workspace } = await createWorkSpace({
|
|
9230
9233
|
credentials,
|
|
9231
9234
|
accountId,
|
|
9232
|
-
profile,
|
|
9233
9235
|
region
|
|
9234
9236
|
});
|
|
9235
9237
|
await workspace.hydrate(app);
|
|
@@ -9406,7 +9408,6 @@ var del3 = (program2) => {
|
|
|
9406
9408
|
const { workspace } = await createWorkSpace({
|
|
9407
9409
|
credentials,
|
|
9408
9410
|
accountId,
|
|
9409
|
-
profile,
|
|
9410
9411
|
region
|
|
9411
9412
|
});
|
|
9412
9413
|
await workspace.hydrate(app);
|
|
@@ -9490,7 +9491,6 @@ var bind = (program2) => {
|
|
|
9490
9491
|
const { workspace } = await createWorkSpace({
|
|
9491
9492
|
credentials,
|
|
9492
9493
|
accountId,
|
|
9493
|
-
profile,
|
|
9494
9494
|
region
|
|
9495
9495
|
});
|
|
9496
9496
|
await workspace.hydrate(app);
|
|
@@ -9643,7 +9643,6 @@ var resources = (program2) => {
|
|
|
9643
9643
|
const { workspace } = await createWorkSpace({
|
|
9644
9644
|
credentials,
|
|
9645
9645
|
accountId,
|
|
9646
|
-
profile,
|
|
9647
9646
|
region
|
|
9648
9647
|
});
|
|
9649
9648
|
const stacks = await workspace.status(app);
|
|
@@ -9758,7 +9757,7 @@ var pull = (program2) => {
|
|
|
9758
9757
|
const credentials = await getCredentials(profile);
|
|
9759
9758
|
const accountId = await getAccountId(credentials, region);
|
|
9760
9759
|
const { app } = createApp({ appConfig, stackConfigs, accountId });
|
|
9761
|
-
const { state: state2 } = await createWorkSpace({ credentials, region, accountId
|
|
9760
|
+
const { state: state2 } = await createWorkSpace({ credentials, region, accountId });
|
|
9762
9761
|
await pullRemoteState(app, state2);
|
|
9763
9762
|
return "State pull was successful.";
|
|
9764
9763
|
});
|
|
@@ -9775,7 +9774,7 @@ var push = (program2) => {
|
|
|
9775
9774
|
const credentials = await getCredentials(appConfig.profile);
|
|
9776
9775
|
const accountId = await getAccountId(credentials, region);
|
|
9777
9776
|
const { app } = createApp({ appConfig, stackConfigs, accountId });
|
|
9778
|
-
const { state: state2 } = await createWorkSpace({ credentials, region, accountId
|
|
9777
|
+
const { state: state2 } = await createWorkSpace({ credentials, region, accountId });
|
|
9779
9778
|
const ok = await prompt12.confirm({
|
|
9780
9779
|
message: "Pushing up the local state might corrupt your remote state. Are you sure?",
|
|
9781
9780
|
initialValue: false
|
|
@@ -9799,7 +9798,7 @@ var unlock = (program2) => {
|
|
|
9799
9798
|
const credentials = await getCredentials(profile);
|
|
9800
9799
|
const accountId = await getAccountId(credentials, region);
|
|
9801
9800
|
const { app } = createApp({ appConfig, stackConfigs, accountId });
|
|
9802
|
-
const { lock } = await createWorkSpace({ credentials, region, accountId
|
|
9801
|
+
const { lock } = await createWorkSpace({ credentials, region, accountId });
|
|
9803
9802
|
const isLocked = await lock.locked(app.urn);
|
|
9804
9803
|
if (!isLocked) {
|
|
9805
9804
|
return "No lock is exists.";
|
|
@@ -9871,7 +9870,6 @@ var list2 = (program2) => {
|
|
|
9871
9870
|
const { workspace } = await createWorkSpace({
|
|
9872
9871
|
credentials,
|
|
9873
9872
|
accountId,
|
|
9874
|
-
profile,
|
|
9875
9873
|
region
|
|
9876
9874
|
});
|
|
9877
9875
|
await workspace.hydrate(app);
|
|
@@ -9908,7 +9906,6 @@ var deploy2 = (program2) => {
|
|
|
9908
9906
|
const { workspace } = await createWorkSpace({
|
|
9909
9907
|
credentials,
|
|
9910
9908
|
accountId,
|
|
9911
|
-
profile,
|
|
9912
9909
|
region
|
|
9913
9910
|
});
|
|
9914
9911
|
await log26.task({
|
|
@@ -9964,7 +9961,6 @@ var logs = (program2) => {
|
|
|
9964
9961
|
const { workspace } = await createWorkSpace({
|
|
9965
9962
|
credentials,
|
|
9966
9963
|
accountId,
|
|
9967
|
-
profile,
|
|
9968
9964
|
region
|
|
9969
9965
|
});
|
|
9970
9966
|
await workspace.hydrate(app);
|
|
@@ -10139,7 +10135,6 @@ var clearCache = (program2) => {
|
|
|
10139
10135
|
const { workspace } = await createWorkSpace({
|
|
10140
10136
|
credentials,
|
|
10141
10137
|
accountId,
|
|
10142
|
-
profile,
|
|
10143
10138
|
region
|
|
10144
10139
|
});
|
|
10145
10140
|
await workspace.hydrate(app);
|
|
@@ -10273,7 +10268,6 @@ var clearCache2 = (program2) => {
|
|
|
10273
10268
|
const { workspace } = await createWorkSpace({
|
|
10274
10269
|
credentials,
|
|
10275
10270
|
accountId,
|
|
10276
|
-
profile,
|
|
10277
10271
|
region
|
|
10278
10272
|
});
|
|
10279
10273
|
await workspace.hydrate(app);
|
|
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.
|
|
3
|
+
"version": "0.0.604",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"@awsless/cloudwatch": "^0.0.1",
|
|
38
38
|
"@awsless/duration": "^0.0.4",
|
|
39
39
|
"@awsless/dynamodb": "^0.3.8",
|
|
40
|
-
"@awsless/iot": "^0.0.3",
|
|
41
40
|
"@awsless/json": "^0.0.10",
|
|
41
|
+
"@awsless/iot": "^0.0.3",
|
|
42
42
|
"@awsless/lambda": "^0.0.35",
|
|
43
43
|
"@awsless/mqtt": "^0.0.2",
|
|
44
44
|
"@awsless/open-search": "^0.0.21",
|
|
45
45
|
"@awsless/s3": "^0.0.21",
|
|
46
46
|
"@awsless/sns": "^0.0.10",
|
|
47
|
+
"@awsless/sqs": "^0.0.16",
|
|
47
48
|
"@awsless/validate": "^0.1.3",
|
|
48
|
-
"@awsless/redis": "^0.0.14",
|
|
49
49
|
"@awsless/ssm": "^0.0.7",
|
|
50
50
|
"@awsless/clui": "^0.0.8",
|
|
51
|
-
"@awsless/
|
|
52
|
-
"@awsless/
|
|
51
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
52
|
+
"@awsless/redis": "^0.0.14"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -140,15 +140,15 @@
|
|
|
140
140
|
"zod": "^3.24.2",
|
|
141
141
|
"zod-to-json-schema": "^3.24.3",
|
|
142
142
|
"@awsless/big-float": "^0.1.5",
|
|
143
|
-
"@awsless/clui": "^0.0.8",
|
|
144
143
|
"@awsless/cloudwatch": "^0.0.1",
|
|
145
|
-
"@awsless/
|
|
146
|
-
"@awsless/graphql": "^0.0.9",
|
|
144
|
+
"@awsless/clui": "^0.0.8",
|
|
147
145
|
"@awsless/json": "^0.0.10",
|
|
148
146
|
"@awsless/scheduler": "^0.0.4",
|
|
149
147
|
"@awsless/size": "^0.0.2",
|
|
148
|
+
"@awsless/ts-file-cache": "^0.0.12",
|
|
150
149
|
"@awsless/validate": "^0.1.3",
|
|
151
|
-
"@awsless/
|
|
150
|
+
"@awsless/duration": "^0.0.4",
|
|
151
|
+
"@awsless/graphql": "^0.0.9"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
154
|
"@hono/node-server": "1.19.9",
|