Kyle McChesney
12/12/2024, 8:31 PMname: kyle-deployment-test
prefect-version: 2.14.20
build:
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
requires: prefect-docker>=0.6.2
image_name: 000000000000.dkr.ecr.us-west-2.amazonaws.com/my-repo
tag: latest
dockerfile: auto
# push section allows you to manage if and how this project is uploaded to remote locations
push:
- prefect_docker.deployments.steps.push_docker_image:
requires: prefect-docker>=0.6.2
image_name: '{{ build_image.image_name }}'
tag: '{{ build_image.tag }}'
pull:
- prefect.deployments.steps.set_working_directory:
directory: /opt/prefect/test_flow/
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: kyle-deployment-test
version:
tags: []
description:
entrypoint: test_flow.py:flow_test
parameters: {}
work_pool:
name: main-pool-sandbox
work_queue_name:
job_variables:
cluster: prefect-worker-pool-cluster
image: '{{ build_image.image }}'
schedules: []
Marvin
12/12/2024, 8:31 PM- I am having trouble getting my Docker/ECS based deployment to use the docker image I specify. My prefect.yaml looks like so:```name: kyle-deployment-test prefect-version: 2.14.20 build: - prefect_docker.deployments.steps.build_docker_image: id: build_image requires: prefect-docker>=0.6.2 image_name: 000000000000.dkr.ecr.us-west-2.amazonaws.com/my-repo tag: latest dockerfile: auto # push section allows you to manage if and how this project is uploaded to remote locations push: - prefect_docker.deployments.steps.push_docker_image: requires: prefect-docker>=0.6.2 image_name: '{{ build_image.image_name }}' tag: '{{ build_image.tag }}' pull: - prefect.deployments.steps.set_working_directory: directory: /opt/prefect/test_flow/ # the deployments section allows you to provide configuration for deploying flows deployments: - name: kyle-deployment-test version: tags: [] description: entrypoint: test_flow.py:flow_test parameters: {} work_pool: name: main-pool-sandbox work_queue_name: job_variables: cluster: prefect-worker-pool-cluster image: '{{ build_image.image }}' schedules:
Marvin
12/12/2024, 8:31 PMprefect.yaml
configuration, but it got cut off. Please make sure to provide the content of your prefect.yaml
file. This will help me understand the setup and identify any issues that might be occurring.
Once you share it, we can look into the Prefect version you're using and any specifics related to Docker and ECS configurations. Let me know if you'd like me to check specific aspects of Prefect's documentation or GitHub issues as well!Kyle McChesney
12/12/2024, 8:32 PMname: kyle-deployment-test
prefect-version: 2.14.20
build:
- prefect_docker.deployments.steps.build_docker_image:
id: build_image
requires: prefect-docker>=0.6.2
image_name: <http://000000000000.dkr.ecr.us-west-2.amazonaws.com/my-repo|000000000000.dkr.ecr.us-west-2.amazonaws.com/my-repo>
tag: latest
dockerfile: auto
# push section allows you to manage if and how this project is uploaded to remote locations
push:
- prefect_docker.deployments.steps.push_docker_image:
requires: prefect-docker>=0.6.2
image_name: '{{ build_image.image_name }}'
tag: '{{ build_image.tag }}'
pull:
- prefect.deployments.steps.set_working_directory:
directory: /opt/prefect/test_flow/
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: kyle-deployment-test
version:
tags: []
description:
entrypoint: test_flow.py:flow_test
parameters: {}
work_pool:
name: main-pool-sandbox
work_queue_name:
job_variables:
cluster: prefect-worker-pool-cluster
image: '{{ build_image.image }}'
schedules: []
Kyle McChesney
12/12/2024, 8:32 PMKyle McChesney
12/12/2024, 8:35 PMKevin Grismore
12/12/2024, 8:58 PMKyle McChesney
12/12/2024, 8:59 PMKyle McChesney
12/12/2024, 9:04 PMprefect deployment run 'flow-test/kyle-deployment-test' --job-variable image=[0000000000000.dkr.ecr.us-west-2.amazonaws.com/experimental-sandbox-prefect-repo:latest](http://0000000000000.dkr.ecr.us-west-2.amazonaws.com/experimental-sandbox-prefect-repo:latest)
Creating flow run for deployment 'flow-test/kyle-deployment-test'...
Created flow run 'robust-wasp'.
└── UUID: 0000000000
└── Parameters: {}
└── Job Variables: {'image': '[0000000000000.dkr.ecr.us-west-2.amazonaws.com/experimental-sandbox-prefect-repo:latest](http://0000000000000.dkr.ecr.us-west-2.amazonaws.com/experimental-sandbox-prefect-repo:latest)'}
└── Scheduled start time: 2024-12-12 14:02:46 MST (now)
└── URL: <https://app.prefect.cloud/account/000000000/workspace/00000000000/runs/flow-run/0000000000>
Kyle McChesney
12/12/2024, 9:21 PMtask_definition.containerDefinitions.image
on the deployment, no luck
• Tried setting image in the work pool config, no luckKevin Grismore
12/12/2024, 9:22 PMKevin Grismore
12/12/2024, 9:22 PMKyle McChesney
12/12/2024, 9:23 PMKyle McChesney
12/12/2024, 9:26 PMKyle McChesney
12/12/2024, 9:41 PMKevin Grismore
12/12/2024, 9:42 PM