@studion/infra-code-blocks 0.6.12 → 0.8.0-next.0
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/README.md +81 -2
- package/dist/components/acm-certificate.d.ts +1 -0
- package/dist/components/acm-certificate.d.ts.map +1 -0
- package/dist/components/database-replica.d.ts +2 -1
- package/dist/components/database-replica.d.ts.map +1 -0
- package/dist/components/database-replica.js +1 -1
- package/dist/components/database.d.ts +2 -1
- package/dist/components/database.d.ts.map +1 -0
- package/dist/components/database.js +1 -1
- package/dist/components/ec2-ssm-connect.d.ts +1 -0
- package/dist/components/ec2-ssm-connect.d.ts.map +1 -0
- package/dist/components/ecs-service.d.ts +16 -2
- package/dist/components/ecs-service.d.ts.map +1 -0
- package/dist/components/ecs-service.js +54 -19
- package/dist/components/mongo.d.ts +5 -2
- package/dist/components/mongo.d.ts.map +1 -0
- package/dist/components/mongo.js +8 -2
- package/dist/components/nuxt-ssr.d.ts +1 -0
- package/dist/components/nuxt-ssr.d.ts.map +1 -0
- package/dist/components/password.d.ts +1 -0
- package/dist/components/password.d.ts.map +1 -0
- package/dist/components/project.d.ts +1 -0
- package/dist/components/project.d.ts.map +1 -0
- package/dist/components/redis.d.ts +1 -0
- package/dist/components/redis.d.ts.map +1 -0
- package/dist/components/static-site.d.ts +1 -0
- package/dist/components/static-site.d.ts.map +1 -0
- package/dist/components/web-server.d.ts +2 -1
- package/dist/components/web-server.d.ts.map +1 -0
- package/dist/components/web-server.js +2 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/types/pulumi.d.ts +5 -0
- package/dist/types/pulumi.d.ts.map +1 -0
- package/dist/types/pulumi.js +2 -0
- package/dist/types/size.d.ts +1 -0
- package/dist/types/size.d.ts.map +1 -0
- package/dist/v2/components/ecs-service/index.d.ts +156 -0
- package/dist/v2/components/ecs-service/index.d.ts.map +1 -0
- package/dist/v2/components/ecs-service/index.js +362 -0
- package/dist/v2/components/ecs-service/policies.d.ts +3 -0
- package/dist/v2/components/ecs-service/policies.d.ts.map +1 -0
- package/dist/v2/components/ecs-service/policies.js +16 -0
- package/dist/v2/components/grafana/dashboards/index.d.ts +3 -0
- package/dist/v2/components/grafana/dashboards/index.d.ts.map +1 -0
- package/dist/v2/components/grafana/dashboards/index.js +6 -0
- package/dist/v2/components/grafana/dashboards/panels.d.ts +6 -0
- package/dist/v2/components/grafana/dashboards/panels.d.ts.map +1 -0
- package/dist/v2/components/grafana/dashboards/panels.js +91 -0
- package/dist/v2/components/grafana/dashboards/types.d.ts +66 -0
- package/dist/v2/components/grafana/dashboards/types.d.ts.map +1 -0
- package/dist/v2/components/grafana/dashboards/types.js +2 -0
- package/dist/v2/components/grafana/dashboards/web-server-slo.d.ts +17 -0
- package/dist/v2/components/grafana/dashboards/web-server-slo.d.ts.map +1 -0
- package/dist/v2/components/grafana/dashboards/web-server-slo.js +98 -0
- package/dist/v2/components/grafana/index.d.ts +2 -0
- package/dist/v2/components/grafana/index.d.ts.map +1 -0
- package/dist/v2/components/grafana/index.js +4 -0
- package/dist/v2/components/prometheus/index.d.ts +2 -0
- package/dist/v2/components/prometheus/index.d.ts.map +1 -0
- package/dist/v2/components/prometheus/index.js +4 -0
- package/dist/v2/components/prometheus/queries.d.ts +10 -0
- package/dist/v2/components/prometheus/queries.d.ts.map +1 -0
- package/dist/v2/components/prometheus/queries.js +61 -0
- package/dist/v2/components/prometheus/queries.test.d.ts +2 -0
- package/dist/v2/components/prometheus/queries.test.d.ts.map +1 -0
- package/dist/v2/components/prometheus/queries.test.js +52 -0
- package/dist/v2/components/web-server/builder.d.ts +34 -0
- package/dist/v2/components/web-server/builder.d.ts.map +1 -0
- package/dist/v2/components/web-server/builder.js +72 -0
- package/dist/v2/components/web-server/index.d.ts +58 -0
- package/dist/v2/components/web-server/index.d.ts.map +1 -0
- package/dist/v2/components/web-server/index.js +169 -0
- package/dist/v2/components/web-server/load-balancer.d.ts +25 -0
- package/dist/v2/components/web-server/load-balancer.d.ts.map +1 -0
- package/dist/v2/components/web-server/load-balancer.js +106 -0
- package/dist/v2/index.d.ts +13 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/index.js +16 -0
- package/dist/v2/otel/batch-processor.d.ts +14 -0
- package/dist/v2/otel/batch-processor.d.ts.map +1 -0
- package/dist/v2/otel/batch-processor.js +9 -0
- package/dist/v2/otel/builder.d.ts +27 -0
- package/dist/v2/otel/builder.d.ts.map +1 -0
- package/dist/v2/otel/builder.js +110 -0
- package/dist/v2/otel/config.d.ts +26 -0
- package/dist/v2/otel/config.d.ts.map +1 -0
- package/dist/v2/otel/config.js +159 -0
- package/dist/v2/otel/index.d.ts +94 -0
- package/dist/v2/otel/index.d.ts.map +1 -0
- package/dist/v2/otel/index.js +82 -0
- package/dist/v2/otel/memory-limiter-processor.d.ts +13 -0
- package/dist/v2/otel/memory-limiter-processor.d.ts.map +1 -0
- package/dist/v2/otel/memory-limiter-processor.js +8 -0
- package/dist/v2/otel/otlp-receiver.d.ts +19 -0
- package/dist/v2/otel/otlp-receiver.d.ts.map +1 -0
- package/dist/v2/otel/otlp-receiver.js +11 -0
- package/dist/v2/otel/prometheus-remote-write-exporter.d.ts +11 -0
- package/dist/v2/otel/prometheus-remote-write-exporter.d.ts.map +1 -0
- package/dist/v2/otel/prometheus-remote-write-exporter.js +2 -0
- package/package.json +37 -13
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebServer = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const aws = require("@pulumi/aws");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
const acm_certificate_1 = require("../../../components/acm-certificate");
|
|
8
|
+
const ecs_service_1 = require("../ecs-service");
|
|
9
|
+
const load_balancer_1 = require("./load-balancer");
|
|
10
|
+
class WebServer extends pulumi.ComponentResource {
|
|
11
|
+
constructor(name, args, opts = {}) {
|
|
12
|
+
var _a;
|
|
13
|
+
super('studion:WebServer', name, args, opts);
|
|
14
|
+
const { vpc, domain, hostedZoneId } = args;
|
|
15
|
+
if (domain && !hostedZoneId) {
|
|
16
|
+
throw new Error('WebServer:hostedZoneId must be provided when the domain is specified');
|
|
17
|
+
}
|
|
18
|
+
const hasCustomDomain = !!domain && !!hostedZoneId;
|
|
19
|
+
if (hasCustomDomain) {
|
|
20
|
+
this.certificate = this.createTlsCertificate({ domain, hostedZoneId });
|
|
21
|
+
}
|
|
22
|
+
this.name = name;
|
|
23
|
+
this.lb = new load_balancer_1.WebServerLoadBalancer(`${this.name}-lb`, {
|
|
24
|
+
vpc,
|
|
25
|
+
port: args.port,
|
|
26
|
+
certificate: (_a = this.certificate) === null || _a === void 0 ? void 0 : _a.certificate,
|
|
27
|
+
healthCheckPath: args.healthCheckPath
|
|
28
|
+
});
|
|
29
|
+
this.serviceSecurityGroup = this.createSecurityGroup(vpc);
|
|
30
|
+
this.initContainers = this.getInitContainers(args);
|
|
31
|
+
this.sidecarContainers = this.getSidecarContainers(args);
|
|
32
|
+
this.container = this.createWebServerContainer(args);
|
|
33
|
+
this.ecsConfig = this.createEcsConfig(args);
|
|
34
|
+
this.volumes = this.getVolumes(args);
|
|
35
|
+
// TODO: Move output mapping to createEcsService
|
|
36
|
+
this.service = pulumi.all([
|
|
37
|
+
this.initContainers,
|
|
38
|
+
this.sidecarContainers,
|
|
39
|
+
]).apply(([initContainers, sidecarContainers,]) => {
|
|
40
|
+
return this.createEcsService(this.container, this.lb, this.ecsConfig, this.volumes, [...initContainers, ...sidecarContainers]);
|
|
41
|
+
});
|
|
42
|
+
if (hasCustomDomain) {
|
|
43
|
+
this.dnsRecord = this.createDnsRecord({ domain, hostedZoneId });
|
|
44
|
+
}
|
|
45
|
+
this.registerOutputs();
|
|
46
|
+
}
|
|
47
|
+
getVolumes(args) {
|
|
48
|
+
return pulumi.all([
|
|
49
|
+
pulumi.output(args.volumes),
|
|
50
|
+
args.otelCollector
|
|
51
|
+
]).apply(([passedVolumes, otelCollector]) => {
|
|
52
|
+
const volumes = [];
|
|
53
|
+
if (passedVolumes)
|
|
54
|
+
volumes.push(...passedVolumes);
|
|
55
|
+
if (otelCollector)
|
|
56
|
+
volumes.push({ name: otelCollector.configVolume });
|
|
57
|
+
return volumes;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
getInitContainers(args) {
|
|
61
|
+
return pulumi.all([
|
|
62
|
+
pulumi.output(args.initContainers),
|
|
63
|
+
args.otelCollector
|
|
64
|
+
]).apply(([passedInits, otelCollector]) => {
|
|
65
|
+
const containers = [];
|
|
66
|
+
if (passedInits)
|
|
67
|
+
containers.push(...passedInits);
|
|
68
|
+
if (otelCollector)
|
|
69
|
+
containers.push(otelCollector.configContainer);
|
|
70
|
+
return containers.map(container => (Object.assign(Object.assign({}, container), { essential: false })));
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
getSidecarContainers(args) {
|
|
74
|
+
return pulumi.all([
|
|
75
|
+
pulumi.output(args.sidecarContainers),
|
|
76
|
+
args.otelCollector
|
|
77
|
+
]).apply(([passedSidecars, otelCollector]) => {
|
|
78
|
+
const containers = [];
|
|
79
|
+
if (passedSidecars)
|
|
80
|
+
containers.push(...passedSidecars);
|
|
81
|
+
if (otelCollector)
|
|
82
|
+
containers.push(otelCollector.container);
|
|
83
|
+
return containers.map(container => (Object.assign(Object.assign({}, container), { essential: true })));
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
getTaskRoleInlinePolicies(args) {
|
|
87
|
+
return pulumi.all([
|
|
88
|
+
pulumi.output(args.taskExecutionRoleInlinePolicies),
|
|
89
|
+
args.otelCollector
|
|
90
|
+
]).apply(([passedTaskRoleInlinePolicies, otelCollector]) => {
|
|
91
|
+
const inlinePolicies = [];
|
|
92
|
+
if (passedTaskRoleInlinePolicies)
|
|
93
|
+
inlinePolicies.push(...passedTaskRoleInlinePolicies);
|
|
94
|
+
if (otelCollector && otelCollector.taskRoleInlinePolicies) {
|
|
95
|
+
inlinePolicies.push(...otelCollector.taskRoleInlinePolicies);
|
|
96
|
+
}
|
|
97
|
+
return inlinePolicies;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
createEcsConfig(args) {
|
|
101
|
+
return {
|
|
102
|
+
vpc: args.vpc,
|
|
103
|
+
cluster: args.cluster,
|
|
104
|
+
desiredCount: args.desiredCount,
|
|
105
|
+
autoscaling: args.autoscaling,
|
|
106
|
+
size: args.size,
|
|
107
|
+
taskExecutionRoleInlinePolicies: args.taskExecutionRoleInlinePolicies,
|
|
108
|
+
taskRoleInlinePolicies: this.getTaskRoleInlinePolicies(args),
|
|
109
|
+
tags: args.tags,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
createWebServerContainer(args) {
|
|
113
|
+
return {
|
|
114
|
+
image: args.image,
|
|
115
|
+
mountPoints: args.mountPoints,
|
|
116
|
+
environment: args.environment,
|
|
117
|
+
secrets: args.secrets,
|
|
118
|
+
port: args.port
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
createTlsCertificate({ domain, hostedZoneId, }) {
|
|
122
|
+
return new acm_certificate_1.AcmCertificate(`${domain}-acm-certificate`, {
|
|
123
|
+
domain,
|
|
124
|
+
hostedZoneId,
|
|
125
|
+
}, { parent: this });
|
|
126
|
+
}
|
|
127
|
+
createSecurityGroup(vpc) {
|
|
128
|
+
const vpcId = pulumi.output(vpc).vpcId;
|
|
129
|
+
return new aws.ec2.SecurityGroup(`${this.name}-security-group`, {
|
|
130
|
+
vpcId,
|
|
131
|
+
ingress: [{
|
|
132
|
+
fromPort: 0,
|
|
133
|
+
toPort: 0,
|
|
134
|
+
protocol: '-1',
|
|
135
|
+
securityGroups: [this.lb.securityGroup.id],
|
|
136
|
+
}],
|
|
137
|
+
egress: [{
|
|
138
|
+
fromPort: 0,
|
|
139
|
+
toPort: 0,
|
|
140
|
+
protocol: '-1',
|
|
141
|
+
cidrBlocks: ['0.0.0.0/0'],
|
|
142
|
+
}],
|
|
143
|
+
tags: constants_1.commonTags,
|
|
144
|
+
}, { parent: this });
|
|
145
|
+
}
|
|
146
|
+
createEcsService(webServerContainer, lb, ecsConfig, volumes, containers) {
|
|
147
|
+
return new ecs_service_1.EcsService(`${this.name}-ecs`, Object.assign(Object.assign({}, ecsConfig), { volumes, containers: [Object.assign(Object.assign({}, webServerContainer), { name: this.name, portMappings: [ecs_service_1.EcsService.createTcpPortMapping(webServerContainer.port)], essential: true }), ...(containers || [])], enableServiceAutoDiscovery: false, loadBalancers: [{
|
|
148
|
+
containerName: this.name,
|
|
149
|
+
containerPort: webServerContainer.port,
|
|
150
|
+
targetGroupArn: lb.targetGroup.arn,
|
|
151
|
+
}], assignPublicIp: true, securityGroup: this.serviceSecurityGroup }), {
|
|
152
|
+
parent: this,
|
|
153
|
+
dependsOn: [lb, lb.targetGroup],
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
createDnsRecord({ domain, hostedZoneId, }) {
|
|
157
|
+
return new aws.route53.Record(`${this.name}-route53-record`, {
|
|
158
|
+
type: 'A',
|
|
159
|
+
name: domain,
|
|
160
|
+
zoneId: hostedZoneId,
|
|
161
|
+
aliases: [{
|
|
162
|
+
name: this.lb.lb.dnsName,
|
|
163
|
+
zoneId: this.lb.lb.zoneId,
|
|
164
|
+
evaluateTargetHealth: true,
|
|
165
|
+
}],
|
|
166
|
+
}, { parent: this });
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
exports.WebServer = WebServer;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as pulumi from '@pulumi/pulumi';
|
|
2
|
+
import * as aws from '@pulumi/aws';
|
|
3
|
+
import * as awsx from '@pulumi/awsx';
|
|
4
|
+
export declare namespace WebServerLoadBalancer {
|
|
5
|
+
type Args = {
|
|
6
|
+
vpc: pulumi.Input<awsx.ec2.Vpc>;
|
|
7
|
+
port: pulumi.Input<number>;
|
|
8
|
+
certificate?: aws.acm.Certificate;
|
|
9
|
+
healthCheckPath?: pulumi.Input<string>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare class WebServerLoadBalancer extends pulumi.ComponentResource {
|
|
13
|
+
name: string;
|
|
14
|
+
lb: aws.lb.LoadBalancer;
|
|
15
|
+
targetGroup: aws.lb.TargetGroup;
|
|
16
|
+
httpListener: aws.lb.Listener;
|
|
17
|
+
tlsListener: aws.lb.Listener | undefined;
|
|
18
|
+
securityGroup: aws.ec2.SecurityGroup;
|
|
19
|
+
constructor(name: string, args: WebServerLoadBalancer.Args, opts?: pulumi.ComponentResourceOptions);
|
|
20
|
+
private createLbTlsListener;
|
|
21
|
+
private createLbHttpListener;
|
|
22
|
+
private createLbTargetGroup;
|
|
23
|
+
private createLbSecurityGroup;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=load-balancer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-balancer.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/web-server/load-balancer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AAGrC,yBAAiB,qBAAqB,CAAC;IACrC,KAAY,IAAI,GAAG;QACjB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3B,WAAW,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC;QAClC,eAAe,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KACxC,CAAC;CACH;AA0BD,qBAAa,qBAAsB,SAAQ,MAAM,CAAC,iBAAiB;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC;IAChC,YAAY,EAAE,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC;IAC9B,WAAW,EAAE,GAAG,CAAC,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;IACzC,aAAa,EAAE,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC;gBAGnC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,qBAAqB,CAAC,IAAI,EAChC,IAAI,GAAE,MAAM,CAAC,wBAA6B;IAoC5C,OAAO,CAAC,mBAAmB;IAmB3B,OAAO,CAAC,oBAAoB;IA0B5B,OAAO,CAAC,mBAAmB;IAsB3B,OAAO,CAAC,qBAAqB;CAS9B"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebServerLoadBalancer = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const aws = require("@pulumi/aws");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
const webServerLoadBalancerNetworkConfig = {
|
|
8
|
+
ingress: [{
|
|
9
|
+
protocol: 'tcp',
|
|
10
|
+
fromPort: 80,
|
|
11
|
+
toPort: 80,
|
|
12
|
+
cidrBlocks: ['0.0.0.0/0'],
|
|
13
|
+
}, {
|
|
14
|
+
protocol: 'tcp',
|
|
15
|
+
fromPort: 443,
|
|
16
|
+
toPort: 443,
|
|
17
|
+
cidrBlocks: ['0.0.0.0/0'],
|
|
18
|
+
}],
|
|
19
|
+
egress: [{
|
|
20
|
+
fromPort: 0,
|
|
21
|
+
toPort: 0,
|
|
22
|
+
protocol: '-1',
|
|
23
|
+
cidrBlocks: ['0.0.0.0/0'],
|
|
24
|
+
}]
|
|
25
|
+
};
|
|
26
|
+
const defaults = {
|
|
27
|
+
healthCheckPath: '/healthcheck',
|
|
28
|
+
};
|
|
29
|
+
class WebServerLoadBalancer extends pulumi.ComponentResource {
|
|
30
|
+
constructor(name, args, opts = {}) {
|
|
31
|
+
super('studion:WebServerLoadBalancer', name, args, opts);
|
|
32
|
+
this.name = name;
|
|
33
|
+
const vpc = pulumi.output(args.vpc);
|
|
34
|
+
const { port, certificate, healthCheckPath } = args;
|
|
35
|
+
this.securityGroup = this.createLbSecurityGroup(vpc.vpcId);
|
|
36
|
+
this.lb = new aws.lb.LoadBalancer(this.name, {
|
|
37
|
+
namePrefix: 'lb-',
|
|
38
|
+
loadBalancerType: 'application',
|
|
39
|
+
subnets: vpc.publicSubnetIds,
|
|
40
|
+
securityGroups: [this.securityGroup.id],
|
|
41
|
+
internal: false,
|
|
42
|
+
ipAddressType: 'ipv4',
|
|
43
|
+
tags: Object.assign(Object.assign({}, constants_1.commonTags), { Name: name }),
|
|
44
|
+
}, { parent: this });
|
|
45
|
+
this.targetGroup = this.createLbTargetGroup(port, vpc.vpcId, healthCheckPath);
|
|
46
|
+
this.httpListener = this.createLbHttpListener(this.lb, this.targetGroup, !!certificate);
|
|
47
|
+
this.tlsListener = certificate &&
|
|
48
|
+
this.createLbTlsListener(this.lb, this.targetGroup, certificate);
|
|
49
|
+
this.registerOutputs();
|
|
50
|
+
}
|
|
51
|
+
createLbTlsListener(lb, lbTargetGroup, certificate) {
|
|
52
|
+
return new aws.lb.Listener(`${this.name}-listener-443`, {
|
|
53
|
+
loadBalancerArn: lb.arn,
|
|
54
|
+
port: 443,
|
|
55
|
+
protocol: 'HTTPS',
|
|
56
|
+
sslPolicy: 'ELBSecurityPolicy-2016-08',
|
|
57
|
+
certificateArn: certificate.arn,
|
|
58
|
+
defaultActions: [{
|
|
59
|
+
type: 'forward',
|
|
60
|
+
targetGroupArn: lbTargetGroup.arn,
|
|
61
|
+
}],
|
|
62
|
+
tags: constants_1.commonTags,
|
|
63
|
+
}, { parent: this, dependsOn: [certificate] });
|
|
64
|
+
}
|
|
65
|
+
createLbHttpListener(lb, lbTargetGroup, redirectToHttps) {
|
|
66
|
+
const httpsRedirectAction = {
|
|
67
|
+
type: 'redirect',
|
|
68
|
+
redirect: {
|
|
69
|
+
port: '443',
|
|
70
|
+
protocol: 'HTTPS',
|
|
71
|
+
statusCode: 'HTTP_301',
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
const defaultAction = redirectToHttps ? httpsRedirectAction : {
|
|
75
|
+
type: 'forward',
|
|
76
|
+
targetGroupArn: lbTargetGroup.arn,
|
|
77
|
+
};
|
|
78
|
+
return new aws.lb.Listener(`${this.name}-listener-80`, {
|
|
79
|
+
loadBalancerArn: lb.arn,
|
|
80
|
+
port: 80,
|
|
81
|
+
defaultActions: [defaultAction],
|
|
82
|
+
tags: constants_1.commonTags,
|
|
83
|
+
}, { parent: this });
|
|
84
|
+
}
|
|
85
|
+
createLbTargetGroup(port, vpcId, healthCheckPath) {
|
|
86
|
+
return new aws.lb.TargetGroup(`${this.name}-tg`, {
|
|
87
|
+
namePrefix: 'lb-tg-',
|
|
88
|
+
port,
|
|
89
|
+
protocol: 'HTTP',
|
|
90
|
+
targetType: 'ip',
|
|
91
|
+
vpcId,
|
|
92
|
+
healthCheck: {
|
|
93
|
+
healthyThreshold: 3,
|
|
94
|
+
unhealthyThreshold: 2,
|
|
95
|
+
interval: 60,
|
|
96
|
+
timeout: 5,
|
|
97
|
+
path: healthCheckPath || defaults.healthCheckPath,
|
|
98
|
+
},
|
|
99
|
+
tags: Object.assign(Object.assign({}, constants_1.commonTags), { Name: `${this.name}-target-group` }),
|
|
100
|
+
}, { parent: this, dependsOn: [this.lb] });
|
|
101
|
+
}
|
|
102
|
+
createLbSecurityGroup(vpcId) {
|
|
103
|
+
return new aws.ec2.SecurityGroup(`${this.name}-security-group`, Object.assign(Object.assign({}, webServerLoadBalancerNetworkConfig), { vpcId, tags: constants_1.commonTags }), { parent: this });
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.WebServerLoadBalancer = WebServerLoadBalancer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { EcsService } from './components/ecs-service';
|
|
2
|
+
export { WebServer } from './components/web-server';
|
|
3
|
+
export { WebServerBuilder } from './components/web-server/builder';
|
|
4
|
+
export { WebServerLoadBalancer } from './components/web-server/load-balancer';
|
|
5
|
+
import { OtelCollectorBuilder } from './otel/builder';
|
|
6
|
+
import { OtelCollector } from './otel';
|
|
7
|
+
export declare const openTelemetry: {
|
|
8
|
+
OtelCollector: typeof OtelCollector;
|
|
9
|
+
OtelCollectorBuilder: typeof OtelCollectorBuilder;
|
|
10
|
+
};
|
|
11
|
+
export * as grafana from './components/grafana';
|
|
12
|
+
export * as prometheus from './components/prometheus';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,eAAO,MAAM,aAAa;;;CAA0C,CAAC;AAErE,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC"}
|
package/dist/v2/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prometheus = exports.grafana = exports.openTelemetry = exports.WebServerLoadBalancer = exports.WebServerBuilder = exports.WebServer = exports.EcsService = void 0;
|
|
4
|
+
var ecs_service_1 = require("./components/ecs-service");
|
|
5
|
+
Object.defineProperty(exports, "EcsService", { enumerable: true, get: function () { return ecs_service_1.EcsService; } });
|
|
6
|
+
var web_server_1 = require("./components/web-server");
|
|
7
|
+
Object.defineProperty(exports, "WebServer", { enumerable: true, get: function () { return web_server_1.WebServer; } });
|
|
8
|
+
var builder_1 = require("./components/web-server/builder");
|
|
9
|
+
Object.defineProperty(exports, "WebServerBuilder", { enumerable: true, get: function () { return builder_1.WebServerBuilder; } });
|
|
10
|
+
var load_balancer_1 = require("./components/web-server/load-balancer");
|
|
11
|
+
Object.defineProperty(exports, "WebServerLoadBalancer", { enumerable: true, get: function () { return load_balancer_1.WebServerLoadBalancer; } });
|
|
12
|
+
const builder_2 = require("./otel/builder");
|
|
13
|
+
const otel_1 = require("./otel");
|
|
14
|
+
exports.openTelemetry = { OtelCollector: otel_1.OtelCollector, OtelCollectorBuilder: builder_2.OtelCollectorBuilder };
|
|
15
|
+
exports.grafana = require("./components/grafana");
|
|
16
|
+
exports.prometheus = require("./components/prometheus");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare namespace BatchProcessor {
|
|
2
|
+
type Config = {
|
|
3
|
+
send_batch_size: number;
|
|
4
|
+
send_batch_max_size: number;
|
|
5
|
+
timeout: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare const defaults: {
|
|
9
|
+
name: string;
|
|
10
|
+
size: number;
|
|
11
|
+
maxSize: number;
|
|
12
|
+
timeout: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=batch-processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch-processor.d.ts","sourceRoot":"","sources":["../../../src/v2/otel/batch-processor.ts"],"names":[],"mappings":"AAAA,yBAAiB,cAAc,CAAC;IAC9B,KAAY,MAAM,GAAG;QACnB,eAAe,EAAE,MAAM,CAAC;QACxB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as pulumi from '@pulumi/pulumi';
|
|
2
|
+
import * as aws from '@pulumi/aws';
|
|
3
|
+
import { OtelCollector } from '.';
|
|
4
|
+
import { OTLPReceiver } from './otlp-receiver';
|
|
5
|
+
export declare class OtelCollectorBuilder {
|
|
6
|
+
private readonly _serviceName;
|
|
7
|
+
private readonly _env;
|
|
8
|
+
private readonly _configBuilder;
|
|
9
|
+
private _taskRoleInlinePolicies;
|
|
10
|
+
constructor(serviceName: pulumi.Input<string>, env: pulumi.Input<string>);
|
|
11
|
+
withOTLPReceiver(protocols?: OTLPReceiver.Protocol[]): this;
|
|
12
|
+
withBatchProcessor(name?: string, size?: number, maxSize?: number, timeout?: string): this;
|
|
13
|
+
withMemoryLimiterProcessor(checkInterval?: string, limitPercentage?: number, spikeLimitPercentage?: number): this;
|
|
14
|
+
withAWSXRayExporter(region: string): this;
|
|
15
|
+
withHealthCheckExtension(endpoint?: string): this;
|
|
16
|
+
withPprofExtension(endpoint?: string): this;
|
|
17
|
+
withAPS(namespace: pulumi.Input<string>, workspace: aws.amp.Workspace, region: string): this;
|
|
18
|
+
withDebug(verbosity?: 'normal' | 'basic' | 'detailed'): this;
|
|
19
|
+
withTelemetry(logLevel?: 'debug' | 'warn' | 'error', metricsVerbosity?: 'basic' | 'normal' | 'detailed'): this;
|
|
20
|
+
withMetricsPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
|
|
21
|
+
withTracesPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
|
|
22
|
+
withDefault(prometheusNamespace: pulumi.Input<string>, prometheusWorkspace: aws.amp.Workspace, awsRegion: string): this;
|
|
23
|
+
build(): OtelCollector;
|
|
24
|
+
private createAPSInlinePolicy;
|
|
25
|
+
private createAWSXRayPolicy;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/v2/otel/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAGlC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwB;IAC7C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;IAC5D,OAAO,CAAC,uBAAuB,CAAoD;gBAGjF,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EACjC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IAO3B,gBAAgB,CACd,SAAS,GAAE,YAAY,CAAC,QAAQ,EAAa,GAC5C,IAAI;IAMP,kBAAkB,CAChB,IAAI,SAA+B,EACnC,IAAI,SAA+B,EACnC,OAAO,SAAkC,EACzC,OAAO,SAAkC,GACxC,IAAI;IAMP,0BAA0B,CACxB,aAAa,SAAgD,EAC7D,eAAe,SAAkD,EACjE,oBAAoB,SAAuD,GAC1E,IAAI;IAUP,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAOzC,wBAAwB,CAAC,QAAQ,SAAkB,GAAG,IAAI;IAM1D,kBAAkB,CAAC,QAAQ,SAAiB,GAAG,IAAI;IAMnD,OAAO,CACL,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAC/B,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,EAC5B,MAAM,EAAE,MAAM,GACb,IAAI;IAWP,SAAS,CAAC,SAAS,GAAE,QAAQ,GAAG,OAAO,GAAG,UAAuB,GAAG,IAAI;IAMxE,aAAa,CACX,QAAQ,GAAE,OAAO,GAAG,MAAM,GAAG,OAAiB,EAC9C,gBAAgB,GAAE,OAAO,GAAG,QAAQ,GAAG,UAAoB,GAC1D,IAAI;IAMP,mBAAmB,CACjB,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,EACvC,UAAU,EAAE,aAAa,CAAC,aAAa,EAAE,EACzC,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,GACtC,IAAI;IAUP,kBAAkB,CAChB,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,EACvC,UAAU,EAAE,aAAa,CAAC,aAAa,EAAE,EACzC,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,GACtC,IAAI;IAUP,WAAW,CACT,mBAAmB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EACzC,mBAAmB,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,EACtC,SAAS,EAAE,MAAM,GAChB,IAAI;IAYP,KAAK,IAAI,aAAa;IAStB,OAAO,CAAC,qBAAqB;IAmB7B,OAAO,CAAC,mBAAmB;CAsB5B"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OtelCollectorBuilder = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const batchProcessor = require("./batch-processor");
|
|
6
|
+
const memoryLimiterProcessor = require("./memory-limiter-processor");
|
|
7
|
+
const _1 = require(".");
|
|
8
|
+
const config_1 = require("./config");
|
|
9
|
+
class OtelCollectorBuilder {
|
|
10
|
+
constructor(serviceName, env) {
|
|
11
|
+
this._taskRoleInlinePolicies = [];
|
|
12
|
+
this._serviceName = pulumi.output(serviceName);
|
|
13
|
+
this._env = pulumi.output(env);
|
|
14
|
+
this._configBuilder = new config_1.OtelCollectorConfigBuilder();
|
|
15
|
+
}
|
|
16
|
+
withOTLPReceiver(protocols = ['http']) {
|
|
17
|
+
this._configBuilder.withOTLPReceiver(protocols);
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
withBatchProcessor(name = batchProcessor.defaults.name, size = batchProcessor.defaults.size, maxSize = batchProcessor.defaults.maxSize, timeout = batchProcessor.defaults.timeout) {
|
|
21
|
+
this._configBuilder.withBatchProcessor(name, size, maxSize, timeout);
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
withMemoryLimiterProcessor(checkInterval = memoryLimiterProcessor.defaults.checkInterval, limitPercentage = memoryLimiterProcessor.defaults.limitPercentage, spikeLimitPercentage = memoryLimiterProcessor.defaults.spikeLimitPercentage) {
|
|
25
|
+
this._configBuilder.withMemoryLimiterProcessor(checkInterval, limitPercentage, spikeLimitPercentage);
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
withAWSXRayExporter(region) {
|
|
29
|
+
this._configBuilder.withAWSXRayExporter(region);
|
|
30
|
+
this.createAWSXRayPolicy();
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
withHealthCheckExtension(endpoint = '0.0.0.0:13133') {
|
|
34
|
+
this._configBuilder.withHealthCheckExtension(endpoint);
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
withPprofExtension(endpoint = '0.0.0.0:1777') {
|
|
38
|
+
this._configBuilder.withPprofExtension(endpoint);
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
withAPS(namespace, workspace, region) {
|
|
42
|
+
this._configBuilder.withAPS(pulumi.output(namespace), pulumi.interpolate `${workspace.prometheusEndpoint}api/v1/remote_write`, region);
|
|
43
|
+
this.createAPSInlinePolicy(workspace);
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
withDebug(verbosity = 'detailed') {
|
|
47
|
+
this._configBuilder.withDebug(verbosity);
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
withTelemetry(logLevel = 'error', metricsVerbosity = 'basic') {
|
|
51
|
+
this._configBuilder.withTelemetry(logLevel, metricsVerbosity);
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
withMetricsPipeline(receivers, processors, exporters) {
|
|
55
|
+
this._configBuilder.withMetricsPipeline(receivers, processors, exporters);
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
withTracesPipeline(receivers, processors, exporters) {
|
|
59
|
+
this._configBuilder.withTracesPipeline(receivers, processors, exporters);
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
withDefault(prometheusNamespace, prometheusWorkspace, awsRegion) {
|
|
63
|
+
this._configBuilder.withDefault(pulumi.output(prometheusNamespace), pulumi.interpolate `${prometheusWorkspace.prometheusEndpoint}api/v1/remote_write`, awsRegion);
|
|
64
|
+
this.createAPSInlinePolicy(prometheusWorkspace);
|
|
65
|
+
this.createAWSXRayPolicy();
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
build() {
|
|
69
|
+
return new _1.OtelCollector(this._serviceName, this._env, this._configBuilder.build(), { taskRoleInlinePolicies: this._taskRoleInlinePolicies });
|
|
70
|
+
}
|
|
71
|
+
createAPSInlinePolicy(workspace) {
|
|
72
|
+
const policy = pulumi.all(([
|
|
73
|
+
this._serviceName,
|
|
74
|
+
workspace.arn
|
|
75
|
+
])).apply(([serviceName, workspaceArn]) => ({
|
|
76
|
+
name: `${serviceName}-task-role-aps-write`,
|
|
77
|
+
policy: JSON.stringify({
|
|
78
|
+
Version: '2012-10-17',
|
|
79
|
+
Statement: [{
|
|
80
|
+
Effect: 'Allow',
|
|
81
|
+
Action: ['aps:RemoteWrite'],
|
|
82
|
+
Resource: workspaceArn,
|
|
83
|
+
}],
|
|
84
|
+
}),
|
|
85
|
+
}));
|
|
86
|
+
this._taskRoleInlinePolicies.push(policy);
|
|
87
|
+
}
|
|
88
|
+
createAWSXRayPolicy() {
|
|
89
|
+
const policy = this._serviceName
|
|
90
|
+
.apply(serviceName => ({
|
|
91
|
+
name: `${serviceName}-task-role-xray`,
|
|
92
|
+
policy: JSON.stringify({
|
|
93
|
+
Version: '2012-10-17',
|
|
94
|
+
Statement: [{
|
|
95
|
+
Effect: 'Allow',
|
|
96
|
+
Action: [
|
|
97
|
+
'xray:PutTraceSegments',
|
|
98
|
+
'xray:PutTelemetryRecords',
|
|
99
|
+
'xray:GetSamplingRules',
|
|
100
|
+
'xray:GetSamplingTargets',
|
|
101
|
+
'xray:GetSamplingStatisticSummaries',
|
|
102
|
+
],
|
|
103
|
+
Resource: '*',
|
|
104
|
+
}],
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this._taskRoleInlinePolicies.push(policy);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.OtelCollectorBuilder = OtelCollectorBuilder;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as pulumi from '@pulumi/pulumi';
|
|
2
|
+
import { OTLPReceiver } from './otlp-receiver';
|
|
3
|
+
import type { OtelCollector } from '.';
|
|
4
|
+
export declare class OtelCollectorConfigBuilder {
|
|
5
|
+
private readonly _receivers;
|
|
6
|
+
private readonly _processors;
|
|
7
|
+
private readonly _exporters;
|
|
8
|
+
private readonly _extensions;
|
|
9
|
+
private readonly _service;
|
|
10
|
+
withOTLPReceiver(protocols?: OTLPReceiver.Protocol[]): this;
|
|
11
|
+
withBatchProcessor(name?: string, size?: number, maxSize?: number, timeout?: string): this;
|
|
12
|
+
withMemoryLimiterProcessor(checkInterval?: string, limitPercentage?: number, spikeLimitPercentage?: number): this;
|
|
13
|
+
withAWSXRayExporter(region: string): this;
|
|
14
|
+
withHealthCheckExtension(endpoint?: string): this;
|
|
15
|
+
withPprofExtension(endpoint?: string): this;
|
|
16
|
+
withAPS(namespace: pulumi.Input<string>, endpoint: pulumi.Input<string>, region: string): this;
|
|
17
|
+
withDebug(verbosity?: 'normal' | 'basic' | 'detailed'): this;
|
|
18
|
+
withTelemetry(logLevel?: 'debug' | 'warn' | 'error', metricsVerbosity?: 'basic' | 'normal' | 'detailed'): this;
|
|
19
|
+
withMetricsPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
|
|
20
|
+
withTracesPipeline(receivers: OtelCollector.ReceiverType[], processors: OtelCollector.ProcessorType[], exporters: OtelCollector.ExporterType[]): this;
|
|
21
|
+
withDefault(prometheusNamespace: pulumi.Input<string>, prometheusWriteEndpoint: pulumi.Input<string>, awsRegion: string): this;
|
|
22
|
+
build(): OtelCollector.Config;
|
|
23
|
+
private validatePipelineProcessorOrder;
|
|
24
|
+
private validatePipelineComponents;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/v2/otel/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAY,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAEvC,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA8B;IACzD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAEvB;IAEF,gBAAgB,CACd,SAAS,GAAE,YAAY,CAAC,QAAQ,EAAa,GAC5C,IAAI;IAmBP,kBAAkB,CAChB,IAAI,SAAU,EACd,IAAI,SAAO,EACX,OAAO,SAAQ,EACf,OAAO,SAAO,GACb,IAAI;IAUP,0BAA0B,CACxB,aAAa,SAAO,EACpB,eAAe,SAAK,EACpB,oBAAoB,SAAK,GACxB,IAAI;IAUP,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMzC,wBAAwB,CAAC,QAAQ,SAAkB,GAAG,IAAI;IAM1D,kBAAkB,CAAC,QAAQ,SAAiB,GAAG,IAAI;IAMnD,OAAO,CACL,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAC/B,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAC9B,MAAM,EAAE,MAAM,GACb,IAAI;IAiBP,SAAS,CAAC,SAAS,GAAE,QAAQ,GAAG,OAAO,GAAG,UAAuB,GAAG,IAAI;IAMxE,aAAa,CACX,QAAQ,GAAE,OAAO,GAAG,MAAM,GAAG,OAAiB,EAC9C,gBAAgB,GAAE,OAAO,GAAG,QAAQ,GAAG,UAAoB,GAC1D,IAAI;IASP,mBAAmB,CACjB,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,EACvC,UAAU,EAAE,aAAa,CAAC,aAAa,EAAE,EACzC,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,GACtC,IAAI;IAUP,kBAAkB,CAChB,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,EACvC,UAAU,EAAE,aAAa,CAAC,aAAa,EAAE,EACzC,SAAS,EAAE,aAAa,CAAC,YAAY,EAAE,GACtC,IAAI;IAUP,WAAW,CACT,mBAAmB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EACzC,uBAAuB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAC7C,SAAS,EAAE,MAAM,GAChB,IAAI;IAqBP,KAAK,IAAI,aAAa,CAAC,MAAM;IAwB7B,OAAO,CAAC,8BAA8B;IAYtC,OAAO,CAAC,0BAA0B;CAmBnC"}
|