Michael Viescas
01/07/2023, 5:10 AM- name: Prefect ECS block
run: |
cat <<EOF > ecs_block.py
from prefect_aws.ecs import ECSTask
block_ = "$BLOCK"
ecs = ECSTask.load(block_)
ecs.image = "${{ steps.build-image.outputs.image }}"
ecs.save(block_, overwrite=True)
EOF
python ecs_block.py
Does the ECSTask block still support changing the image after loading it from an existing block? I'm having trouble finding it when looking at the documentation here:
https://prefecthq.github.io/prefect-aws/ecs/#prefect_aws.ecs.ECSTask.image
Prefect Version: 2.7.7Anna Geller
01/08/2023, 3:41 PMMichael Viescas
01/08/2023, 4:50 PMAnna Geller
01/08/2023, 8:33 PM