diff --git a/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap b/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap index aaa6ea5b4d..1f3ba6f690 100644 --- a/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap +++ b/src/constructs/ecs/__snapshots__/ecs-task.test.ts.snap @@ -479,8 +479,15 @@ exports[`The GuEcsTask pattern should create the correct resources with lots of }, }, "Memory": 1024, + "MountPoints": [ + { + "ContainerPath": "/opt/testing", + "ReadOnly": false, + "SourceVolume": "ecs-test-volume", + }, + ], "Name": "test-ecs-task-ecs-test-TaskContainer", - "ReadonlyRootFilesystem": false, + "ReadonlyRootFilesystem": true, }, ], "Cpu": "1024", @@ -531,6 +538,11 @@ exports[`The GuEcsTask pattern should create the correct resources with lots of "Arn", ], }, + "Volumes": [ + { + "Name": "ecs-test-volume", + }, + ], }, "Type": "AWS::ECS::TaskDefinition", }, @@ -1191,8 +1203,15 @@ exports[`The GuEcsTask pattern should support overriding the subnets used by the }, }, "Memory": 1024, + "MountPoints": [ + { + "ContainerPath": "/opt/testing", + "ReadOnly": false, + "SourceVolume": "ecs-test-volume", + }, + ], "Name": "test-ecs-task-ecs-test-TaskContainer", - "ReadonlyRootFilesystem": false, + "ReadonlyRootFilesystem": true, }, ], "Cpu": "1024", @@ -1243,6 +1262,11 @@ exports[`The GuEcsTask pattern should support overriding the subnets used by the "Arn", ], }, + "Volumes": [ + { + "Name": "ecs-test-volume", + }, + ], }, "Type": "AWS::ECS::TaskDefinition", }, diff --git a/src/constructs/ecs/ecs-task.test.ts b/src/constructs/ecs/ecs-task.test.ts index fa40870d05..dbcd60a995 100644 --- a/src/constructs/ecs/ecs-task.test.ts +++ b/src/constructs/ecs/ecs-task.test.ts @@ -49,6 +49,7 @@ describe("The GuEcsTask pattern", () => { cpu: 1024, memory: 1024, storage: 30, + volumeMountPath: "/opt/testing", monitoringConfiguration: { snsTopicArn: "arn:something:else:here:we:goalarm-topic", noMonitoring: false }, taskCommand: `echo "yo ho row ho it's a pirates life for me"`, securityGroups: [securityGroup(stack, app)],