@stacksjs/ts-cloud 0.5.15 → 0.5.17
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.
|
@@ -5,4 +5,10 @@
|
|
|
5
5
|
* if no box is reachable it returns null and the dashboard renders sample data.
|
|
6
6
|
*/
|
|
7
7
|
import type { CloudConfig, EnvironmentType } from '@ts-cloud/core';
|
|
8
|
+
export declare function parseBlock(output: string): Record<string, string> & {
|
|
9
|
+
services: Array<{
|
|
10
|
+
name: string;
|
|
11
|
+
status: string;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
8
14
|
export declare function resolveServerDashboardData(config: CloudConfig, environment: EnvironmentType): Promise<Record<string, any> | null>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -26399,14 +26399,7 @@ function composeServerlessAppTemplate(opts) {
|
|
|
26399
26399
|
VisibilityConfig: { SampledRequestsEnabled: true, CloudWatchMetricsEnabled: true, MetricName: `${slug}-${environment}-waf` }
|
|
26400
26400
|
}
|
|
26401
26401
|
};
|
|
26402
|
-
|
|
26403
|
-
Type: "AWS::WAFv2::WebACLAssociation",
|
|
26404
|
-
DependsOn: ["HttpStage"],
|
|
26405
|
-
Properties: {
|
|
26406
|
-
ResourceArn: Fn2.sub("arn:aws:apigateway:${AWS::Region}::/apis/${HttpApi}/stages/$default"),
|
|
26407
|
-
WebACLArn: Fn2.getAtt("WebAcl", "Arn")
|
|
26408
|
-
}
|
|
26409
|
-
};
|
|
26402
|
+
outputs.WafAclArn = { Description: "WAF web ACL ARN. Attach to a CloudFront distribution fronting the API to enforce (HTTP API v2 stages do not support direct WAF association).", Value: Fn2.getAtt("WebAcl", "Arn") };
|
|
26410
26403
|
}
|
|
26411
26404
|
if (hasVpc && needsDataVpc) {
|
|
26412
26405
|
if (!app.vpc?.id)
|
|
@@ -83795,6 +83788,9 @@ init_client();
|
|
|
83795
83788
|
|
|
83796
83789
|
// src/deploy/dashboard-data.ts
|
|
83797
83790
|
init_s3();
|
|
83791
|
+
|
|
83792
|
+
// src/aws/wafv2.ts
|
|
83793
|
+
init_client();
|
|
83798
83794
|
// src/drivers/factory.ts
|
|
83799
83795
|
await init_dist2();
|
|
83800
83796
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ts-cloud",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.17",
|
|
5
5
|
"description": "A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"test": "bun test"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@ts-cloud/aws-types": "0.5.
|
|
93
|
-
"@ts-cloud/core": "0.5.
|
|
92
|
+
"@ts-cloud/aws-types": "0.5.17",
|
|
93
|
+
"@ts-cloud/core": "0.5.17",
|
|
94
94
|
"@stacksjs/ts-xml": "^0.1.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|