Skip to content

Commit

Permalink
fix(GuEcsTask): Use correct DISCARD value
Browse files Browse the repository at this point in the history
Use the static property `JsonPath.DISCARD` over the string `"DISCARD"`,
which will cause the state's input to become its output.

See:
  - aws/aws-cdk#24717
  - https://github.com/aws/aws-cdk/blob/main/CHANGELOG.v2.md#2700-2023-03-22
  • Loading branch information
akash1810 committed Apr 10, 2023
1 parent 4710555 commit e0f2e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constructs/ecs/ecs-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "aws-cdk-lib/aws-ecs";
import type { PolicyStatement } from "aws-cdk-lib/aws-iam";
import { Topic } from "aws-cdk-lib/aws-sns";
import { IntegrationPattern, StateMachine } from "aws-cdk-lib/aws-stepfunctions";
import { IntegrationPattern, JsonPath, StateMachine } from "aws-cdk-lib/aws-stepfunctions";
import type { TaskEnvironmentVariable } from "aws-cdk-lib/aws-stepfunctions-tasks";
import { EcsFargateLaunchTarget, EcsRunTask } from "aws-cdk-lib/aws-stepfunctions-tasks";
import { Construct } from "constructs";
Expand Down Expand Up @@ -205,7 +205,7 @@ export class GuEcsTask extends Construct {
}),
taskDefinition,
integrationPattern: IntegrationPattern.RUN_JOB,
resultPath: "DISCARD",
resultPath: JsonPath.DISCARD,
timeout: Duration.minutes(taskTimeoutInMinutes),
securityGroups,
containerOverrides: [
Expand Down

0 comments on commit e0f2e80

Please sign in to comment.