I have a docker container (derived from PHP-CLI) that may be launched like this locally:
docker run php-cli-container php public/index.php argument1 argument2
I uploaded the container to Amazon AWS ECR and implemented it into an ECS scheduled task. Everything is set up properly and the task is actually running on AWS now every hour.
The input is stored in EventBridge as follows:
{
"containerOverrides": [{
"name": "php-api-cli",
"command": ["php public/index.php argument1 argument2"]
}]
}
Unfortunately, this does not seem to work. CloudWatch reports the following error:
/usr/local/bin/docker-php-entrypoint: 9: exec: php public/index.php argument1 argument2: not found
How do I correctly pass the argument php public/index.php argument1 argument2
into the AWS Fargate task?