@awsless/awsless 0.0.410 → 0.0.411
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 +11 -3
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/package.json +7 -7
package/dist/bin.js
CHANGED
|
@@ -14980,9 +14980,10 @@ var auth = (program2) => {
|
|
|
14980
14980
|
// src/cli/command/bind.ts
|
|
14981
14981
|
import { unwrap as unwrap3 } from "@awsless/formation";
|
|
14982
14982
|
import { log as log9, note as note3 } from "@clack/prompts";
|
|
14983
|
+
import { constantCase as constantCase14 } from "change-case";
|
|
14983
14984
|
import { spawn } from "child_process";
|
|
14984
14985
|
var bind = (program2) => {
|
|
14985
|
-
program2.command("bind").argument("[command...]", "The command to execute").option("--
|
|
14986
|
+
program2.command("bind").argument("[command...]", "The command to execute").option("--config <string...>", "List of config values that will be accessable", (v) => v.split(",")).description(`Bind your site environment variables to a command`).action(async (commands7 = [], opts) => {
|
|
14986
14987
|
await layout("bind", async ({ appConfig, stackConfigs }) => {
|
|
14987
14988
|
const region = appConfig.region;
|
|
14988
14989
|
const credentials = getCredentials(appConfig.profile);
|
|
@@ -15003,6 +15004,13 @@ var bind = (program2) => {
|
|
|
15003
15004
|
} else {
|
|
15004
15005
|
log9.warning("No bindings available.");
|
|
15005
15006
|
}
|
|
15007
|
+
const configs = {};
|
|
15008
|
+
for (const name of opts.config) {
|
|
15009
|
+
configs[`CONFIG_${constantCase14(name)}`] = name;
|
|
15010
|
+
}
|
|
15011
|
+
if (opts.config.length > 0) {
|
|
15012
|
+
note3(wrap(opts.config.map((v) => color.label(constantCase14(v)))), "Bind Config");
|
|
15013
|
+
}
|
|
15006
15014
|
if (commands7.length === 0) {
|
|
15007
15015
|
return "No command to execute.";
|
|
15008
15016
|
}
|
|
@@ -15014,10 +15022,10 @@ var bind = (program2) => {
|
|
|
15014
15022
|
...process.env,
|
|
15015
15023
|
// Pass the site bind env vars
|
|
15016
15024
|
...env,
|
|
15025
|
+
// Pass in the config values to load
|
|
15026
|
+
...configs,
|
|
15017
15027
|
// Pass the app config name
|
|
15018
15028
|
APP: appConfig.name,
|
|
15019
|
-
// Pass in the config values to load
|
|
15020
|
-
CONFIG: opts.configs.join(","),
|
|
15021
15029
|
// Basic AWS info
|
|
15022
15030
|
AWS_REGION: appConfig.region,
|
|
15023
15031
|
AWS_ACCOUNT_ID: accountId,
|
|
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.411",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@awsless/lambda": "^0.0.30",
|
|
32
|
+
"@awsless/iot": "^0.0.2",
|
|
32
33
|
"@awsless/redis": "^0.0.13",
|
|
33
34
|
"@awsless/mqtt": "^0.0.2",
|
|
34
|
-
"@awsless/s3": "^0.0.18",
|
|
35
|
-
"@awsless/iot": "^0.0.2",
|
|
36
35
|
"@awsless/open-search": "^0.0.15",
|
|
36
|
+
"@awsless/validate": "^0.0.16",
|
|
37
37
|
"@awsless/json": "^0.0.6",
|
|
38
|
-
"@awsless/
|
|
38
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
39
|
+
"@awsless/s3": "^0.0.18",
|
|
39
40
|
"@awsless/sns": "^0.0.7",
|
|
40
|
-
"@awsless/validate": "^0.0.16",
|
|
41
41
|
"@awsless/sqs": "^0.0.7",
|
|
42
|
-
"@awsless/
|
|
42
|
+
"@awsless/ssm": "^0.0.7"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
"zip-a-folder": "^3.1.6",
|
|
114
114
|
"zod": "^3.21.4",
|
|
115
115
|
"zod-to-json-schema": "^3.22.3",
|
|
116
|
+
"@awsless/duration": "^0.0.1",
|
|
116
117
|
"@awsless/formation": "^0.0.57",
|
|
117
118
|
"@awsless/size": "^0.0.1",
|
|
118
|
-
"@awsless/duration": "^0.0.1",
|
|
119
119
|
"@awsless/json": "^0.0.6",
|
|
120
120
|
"@awsless/validate": "^0.0.16",
|
|
121
121
|
"@awsless/code": "^0.0.10",
|