Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

ECS Works Pools Should Support Specifying Volumes for Flow Runs #382

Closed
rjruizes opened this issue Feb 21, 2024 · 1 comment
Closed

ECS Works Pools Should Support Specifying Volumes for Flow Runs #382

rjruizes opened this issue Feb 21, 2024 · 1 comment

Comments

@rjruizes
Copy link

With ECS Task blocks, you can supply EFS Volume parameters in JSON for the task definition like so

TASK_DEFINITION = {
    ...
    "containerDefinitions": [
        {
            "name": "prefect",
            ...
            "mountPoints": [EFS_MOUNT_POINT],
        },
    ],
    "volumes": [EFS_VOLUME],
}

But no such variables exist for templating an ECS job.

Expectation / Proposal

Volumes and mountPoints should be a JSON variable in the template

@desertaxle
Copy link
Member

Thanks for the issue @rjruizes! Custom fields like this are available in the ECS worker via templating, so we recommend using the ECS worker for more configurability. To achieve the same customization in the ECSTask block, you can use the task_customizations field. Let us know if you have further questions about either of those approaches!

@PrefectHQ PrefectHQ locked and limited conversation to collaborators Feb 21, 2024
@desertaxle desertaxle converted this issue into discussion #383 Feb 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants