Skip to content

Commit

Permalink
feat: expose task definition on gatsby function object
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreaves committed Sep 28, 2024
1 parent ea0cabe commit d0d2306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cdk/GatsbySite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export class GatsbySite extends Construct {
target: "FARGATE",
fargateService: service.service,
loadBalancer: service.loadBalancer,
taskDefinition: service.taskDefinition,
};

return [...acc, gatsbyFunction];
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export interface GatsbyFunctionLambda extends BaseGatsbyFunction {

export interface GatsbyFunctionFargate extends BaseGatsbyFunction {
target: "FARGATE";
taskDefinition: ecs.TaskDefinition;
fargateService: ecs.IFargateService;
loadBalancer: elb.IApplicationLoadBalancer;
}
Expand Down

0 comments on commit d0d2306

Please sign in to comment.