Jan Marais
01/25/2021, 2:51 PMLoic M
01/25/2021, 3:04 PMJan Marais
01/25/2021, 3:27 PMZanie
Jan Marais
01/25/2021, 6:24 PMZanie
cloud.agent.level
in your config.toml to DEBUG
we should get a bit more info about where things are going wrong in the deployment.Jan Marais
01/26/2021, 5:25 AMcloud.agent.level
applicable with a local backend?Zanie
Jan Marais
01/27/2021, 8:10 AMfrom prefect import Flow, task
from prefect.storage import Docker, S3
import prefect
from prefect.run_configs import ECSRun
@task
def hi():
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("HI")
storage = S3("prefect-flows-example")
run_config = ECSRun(
env={
"AWS_ACCESS_KEY_ID": "xxx",
"AWS_SECRET_ACCESS_KEY": "xxx",
},
image="prefecthq/prefect:0.14.4-python3.8",
run_task_kwargs={
"networkConfiguration": {
"awsvpcConfiguration": {
"assignPublicIp": "ENABLED",
"subnets": ["subnet-087d13d842f616490"],
"securityGroups": ["sg-073f49dbf01ad5bc9"],
}
}
},
)
with Flow("prefect-test", storage=storage, run_config=run_config) as flow:
hi()
flow.register("main-project")
I've tried various ECSRun
configurations, with and without task and execution roles and network configurations.prefect agent ecs start --cluster prefect-demo
ECSRun
with DockerRun
keeping the env
and image
parameters the same.prefect agent docker start