jack04/18/2023, 8:58 PM
when attempting a "Hello World" prefect flow on ECS Using the prefect-aws guide and using this invocation to build a deployment:
Submission failed. KeyError: 'env'
prefect deployment build run.py:main \ -n jack-test-1 \ -ib ecs-task/ecs-block \ -sb s3/flow-storage-block \ --pool some-pool \ --override env.EXTRA_PIP_PACKAGES=prefect-aws
elsewhere. But removing the
from the above invocation leads to boto3 permissions errors.
Ryan Peden04/18/2023, 10:08 PM
block right now. If you use the UI to set env to
, and then try your deployment command again, does it work? It looks like the default for
is supposed to be an empty dict, which would prevent this from happening. But I just created a new ECS block and my env was None, which I believe will cause the problem you saw right about here when it tries to look up
in the block document.
jack04/19/2023, 2:19 PM
Ryan Peden04/19/2023, 2:19 PM