sst 2.26.10 → 2.26.11
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/constructs/Service.d.ts +4 -1
- package/constructs/Service.js +7 -1
- package/package.json +1 -1
- package/project.d.ts +1 -0
- package/project.js +3 -0
package/constructs/Service.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SSTConstruct } from "./Construct.js";
|
|
|
4
4
|
import { Permissions } from "./util/permission.js";
|
|
5
5
|
import { FunctionBindingProps } from "./util/functionBinding.js";
|
|
6
6
|
import { IVpc } from "aws-cdk-lib/aws-ec2";
|
|
7
|
-
import { Cluster, ContainerDefinitionOptions, CpuArchitecture, FargateServiceProps } from "aws-cdk-lib/aws-ecs";
|
|
7
|
+
import { Cluster, ContainerDefinitionOptions, CpuArchitecture, FargateService, FargateTaskDefinition, FargateServiceProps } from "aws-cdk-lib/aws-ecs";
|
|
8
8
|
import { RetentionDays } from "aws-cdk-lib/aws-logs";
|
|
9
9
|
import { ApplicationTargetGroupProps } from "aws-cdk-lib/aws-elasticloadbalancingv2";
|
|
10
10
|
declare const supportedCpus: {
|
|
@@ -394,6 +394,7 @@ export declare class Service extends Construct implements SSTConstruct {
|
|
|
394
394
|
private cluster;
|
|
395
395
|
private container;
|
|
396
396
|
private taskDefinition;
|
|
397
|
+
private service;
|
|
397
398
|
private distribution?;
|
|
398
399
|
constructor(scope: Construct, id: string, props?: ServiceProps);
|
|
399
400
|
/**
|
|
@@ -411,6 +412,8 @@ export declare class Service extends Construct implements SSTConstruct {
|
|
|
411
412
|
get cdk(): {
|
|
412
413
|
vpc: IVpc;
|
|
413
414
|
cluster: Cluster;
|
|
415
|
+
fargateService: FargateService;
|
|
416
|
+
taskDefinition: FargateTaskDefinition;
|
|
414
417
|
distribution: import("aws-cdk-lib/aws-cloudfront").IDistribution | undefined;
|
|
415
418
|
hostedZone: import("aws-cdk-lib/aws-route53").IHostedZone | undefined;
|
|
416
419
|
certificate: import("aws-cdk-lib/aws-certificatemanager").ICertificate | undefined;
|
package/constructs/Service.js
CHANGED
|
@@ -145,6 +145,7 @@ export class Service extends Construct {
|
|
|
145
145
|
cluster;
|
|
146
146
|
container;
|
|
147
147
|
taskDefinition;
|
|
148
|
+
service;
|
|
148
149
|
distribution;
|
|
149
150
|
constructor(scope, id, props) {
|
|
150
151
|
super(scope, id);
|
|
@@ -168,7 +169,9 @@ export class Service extends Construct {
|
|
|
168
169
|
useServices().add(stack.stackName, id, this.props);
|
|
169
170
|
if (this.doNotDeploy) {
|
|
170
171
|
// @ts-expect-error
|
|
171
|
-
this.vpc = this.cluster =
|
|
172
|
+
this.vpc = this.cluster = null;
|
|
173
|
+
// @ts-expect-error
|
|
174
|
+
this.service = this.container = this.taskDefinition = null;
|
|
172
175
|
// @ts-expect-error
|
|
173
176
|
this.distribution = null;
|
|
174
177
|
this.devFunction = this.createDevFunction();
|
|
@@ -184,6 +187,7 @@ export class Service extends Construct {
|
|
|
184
187
|
this.distribution = this.createDistribution(alb);
|
|
185
188
|
this.vpc = vpc;
|
|
186
189
|
this.cluster = cluster;
|
|
190
|
+
this.service = service;
|
|
187
191
|
this.container = container;
|
|
188
192
|
this.taskDefinition = taskDefinition;
|
|
189
193
|
this.bindForService(props?.bind || []);
|
|
@@ -244,6 +248,8 @@ export class Service extends Construct {
|
|
|
244
248
|
return {
|
|
245
249
|
vpc: this.vpc,
|
|
246
250
|
cluster: this.cluster,
|
|
251
|
+
fargateService: this.service,
|
|
252
|
+
taskDefinition: this.taskDefinition,
|
|
247
253
|
distribution: this.distribution?.cdk.distribution,
|
|
248
254
|
hostedZone: this.distribution?.cdk.hostedZone,
|
|
249
255
|
certificate: this.distribution?.cdk.certificate,
|
package/package.json
CHANGED
package/project.d.ts
CHANGED