Kelvin DeCosta
10/11/2022, 3:54 PMprefect
cli help message over and over again.
ECS console shows a list of STOPPED
tasks, which I'm assuming are various attempts to start the service and keep it running.FROM prefecthq/prefect:2-python3.10
# Install dependencies for AWS
RUN pip install s3fs prefect-aws
# Register AWS block types
RUN prefect block register -m prefect_aws.ecs
{
"name": "container",
"image": "long-image-identifier",
"cpu": 0,
"portMappings": [],
"essential": true,
"entryPoint": [
"bash",
"-c"
],
"command": [
"prefect",
"agent",
"start",
"-q",
"main"
],
"environment": [],
"mountPoints": [],
"volumesFrom": [],
"secrets": [
{
"name": "PREFECT_API_URL",
"valueFrom": "long-arn"
},
{
"name": "PREFECT_API_KEY",
"valueFrom": "long-arn"
}
],
"stopTimeout": 120,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "my-log-group",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "container"
}
}
}
prefect
is installed correctly, because I'm getting the CLI help message.
This makes me wonder if my supplied command
is wrong.
I'd want the service to run
prefect agent start -q main
Christopher Boyd
10/11/2022, 4:13 PMKelvin DeCosta
10/11/2022, 4:21 PMentryPoint: ["bash" "-c"]
which is wrong.
I have been setting up my team's resources by following the dataflow-ops
repository.
Thank you for these additional links!