@awsless/cli 0.0.17 → 0.0.18
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
|
@@ -138,11 +138,21 @@ var validateSecretAccessKey = (value) => {
|
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
// src/util/aws.ts
|
|
141
|
-
var
|
|
141
|
+
var hasRuntimeAwsCredentials = () => !!(process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI || process.env.AWS_CONTAINER_CREDENTIALS_FULL_URI || process.env.AWS_ACCESS_KEY_ID || process.env.AWS_WEB_IDENTITY_TOKEN_FILE);
|
|
142
142
|
var getCredentials = async (profile) => {
|
|
143
|
-
if (
|
|
144
|
-
|
|
143
|
+
if (hasRuntimeAwsCredentials()) {
|
|
144
|
+
const runtimeCredentials = fromNodeProviderChain();
|
|
145
|
+
try {
|
|
146
|
+
await runtimeCredentials();
|
|
147
|
+
console.log(`[awsless] using runtime-provided AWS credentials for profile ${profile}`);
|
|
148
|
+
return runtimeCredentials;
|
|
149
|
+
} catch (error) {
|
|
150
|
+
throw new Error(
|
|
151
|
+
`[awsless] runtime-provided AWS credentials were advertised for profile ${profile}, but resolution failed: ${String(error)}`
|
|
152
|
+
);
|
|
153
|
+
}
|
|
145
154
|
}
|
|
155
|
+
console.log(`[awsless] runtime-provided AWS credentials not advertised for profile ${profile}, using Bun.secrets`);
|
|
146
156
|
const credentials = await fetchCredentials(profile);
|
|
147
157
|
return createCredentialChain(async () => {
|
|
148
158
|
return credentials;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -92,18 +92,18 @@
|
|
|
92
92
|
"@awsless/duration": "^0.0.4",
|
|
93
93
|
"@awsless/dynamodb": "^0.3.20",
|
|
94
94
|
"@awsless/iot": "^0.0.5",
|
|
95
|
-
"@awsless/json": "^0.0.11",
|
|
96
95
|
"@awsless/lambda": "^0.0.42",
|
|
97
|
-
"@awsless/redis": "^0.0.16",
|
|
98
|
-
"@awsless/s3": "^0.0.21",
|
|
99
96
|
"@awsless/size": "^0.0.2",
|
|
100
|
-
"@awsless/sns": "^0.0.10",
|
|
101
97
|
"@awsless/sqs": "^0.0.21",
|
|
102
98
|
"@awsless/scheduler": "^0.0.4",
|
|
103
99
|
"@awsless/ts-file-cache": "^0.0.16",
|
|
104
|
-
"@awsless/validate": "^0.1.7",
|
|
105
100
|
"@awsless/weak-cache": "^0.0.1",
|
|
106
|
-
"awsless": "^0.0.
|
|
101
|
+
"@awsless/s3": "^0.0.21",
|
|
102
|
+
"@awsless/redis": "^0.0.16",
|
|
103
|
+
"@awsless/json": "^0.0.11",
|
|
104
|
+
"@awsless/validate": "^0.1.7",
|
|
105
|
+
"awsless": "^0.0.5",
|
|
106
|
+
"@awsless/sns": "^0.0.10"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@hono/node-server": "1.19.9",
|