cdk-cost-analyzer 0.1.54 → 0.1.56
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/.cdk-cost-analyzer-cache/metadata.json +8 -8
- package/dist/action/136.index.js +1 -1
- package/dist/action/443.index.js +1 -1
- package/dist/action/605.index.js +12 -6
- package/dist/action/762.index.js +1 -1
- package/dist/action/998.index.js +1 -1
- package/dist/action/index.js +2 -2
- package/dist/releasetag.txt +1 -1
- package/package.json +3 -3
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
"entries": {
|
|
3
3
|
"AmazonS3:US East (N. Virginia):storageClass:General Purpose|volumeType:Standard": {
|
|
4
4
|
"price": 0.023,
|
|
5
|
-
"timestamp":
|
|
5
|
+
"timestamp": 1780078952090
|
|
6
6
|
},
|
|
7
7
|
"AmazonDynamoDB:US East (N. Virginia):group:DDB-ReadUnits|productFamily:Amazon DynamoDB PayPerRequest Throughput": {
|
|
8
8
|
"price": 0.023,
|
|
9
|
-
"timestamp":
|
|
9
|
+
"timestamp": 1780078952103
|
|
10
10
|
},
|
|
11
11
|
"AmazonDynamoDB:US East (N. Virginia):group:DDB-WriteUnits|productFamily:Amazon DynamoDB PayPerRequest Throughput": {
|
|
12
12
|
"price": 0.023,
|
|
13
|
-
"timestamp":
|
|
13
|
+
"timestamp": 1780078952103
|
|
14
14
|
},
|
|
15
15
|
"AmazonEC2:US East (N. Virginia):capacitystatus:Used|instanceType:t3.micro|operatingSystem:Linux|preInstalledSw:NA|tenancy:Shared": {
|
|
16
16
|
"price": 0.023,
|
|
17
|
-
"timestamp":
|
|
17
|
+
"timestamp": 1780078952113
|
|
18
18
|
},
|
|
19
19
|
"AWSLambda:US East (N. Virginia):group:AWS-Lambda-Requests": {
|
|
20
20
|
"price": 0.023,
|
|
21
|
-
"timestamp":
|
|
21
|
+
"timestamp": 1780078952124
|
|
22
22
|
},
|
|
23
23
|
"AWSLambda:US East (N. Virginia):group:AWS-Lambda-Duration": {
|
|
24
24
|
"price": 0.023,
|
|
25
|
-
"timestamp":
|
|
25
|
+
"timestamp": 1780078952124
|
|
26
26
|
},
|
|
27
27
|
"AmazonS3:EU (Frankfurt):storageClass:General Purpose|volumeType:Standard": {
|
|
28
28
|
"price": 0.023,
|
|
29
|
-
"timestamp":
|
|
29
|
+
"timestamp": 1780078962069
|
|
30
30
|
},
|
|
31
31
|
"AmazonS3:invalid-region-123:storageClass:General Purpose|volumeType:Standard": {
|
|
32
32
|
"price": 0.023,
|
|
33
|
-
"timestamp":
|
|
33
|
+
"timestamp": 1780078962114
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
package/dist/action/136.index.js
CHANGED
package/dist/action/443.index.js
CHANGED
package/dist/action/605.index.js
CHANGED
|
@@ -107,11 +107,9 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
107
107
|
}
|
|
108
108
|
const url = new URL(host);
|
|
109
109
|
(0, checkUrl_1.checkUrl)(url, options.logger);
|
|
110
|
-
const requestHandler = node_http_handler_1.NodeHttpHandler.create({
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
});
|
|
114
|
-
return (0, retry_wrapper_1.retryWrapper)(async () => {
|
|
110
|
+
const requestHandler = node_http_handler_1.NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1000 });
|
|
111
|
+
const requestTimeout = options.timeout ?? 1000;
|
|
112
|
+
const provider = (0, retry_wrapper_1.retryWrapper)(async () => {
|
|
115
113
|
const request = (0, requestHelpers_1.createGetRequest)(url);
|
|
116
114
|
if (token) {
|
|
117
115
|
request.headers.Authorization = token;
|
|
@@ -120,13 +118,21 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
120
118
|
request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
|
|
121
119
|
}
|
|
122
120
|
try {
|
|
123
|
-
const result = await requestHandler.handle(request);
|
|
121
|
+
const result = await requestHandler.handle(request, { requestTimeout });
|
|
124
122
|
return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
|
|
125
123
|
}
|
|
126
124
|
catch (e) {
|
|
127
125
|
throw new config_1.CredentialsProviderError(String(e), { logger: options.logger });
|
|
128
126
|
}
|
|
129
127
|
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
|
128
|
+
return async () => {
|
|
129
|
+
try {
|
|
130
|
+
return await provider();
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
requestHandler.destroy?.();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
130
136
|
};
|
|
131
137
|
exports.fromHttp = fromHttp;
|
|
132
138
|
|
package/dist/action/762.index.js
CHANGED
package/dist/action/998.index.js
CHANGED