4 Answers
- Newest
- Most votes
- Most comments
0
Hello.
After you create a task definition, you can start the task within your cluster.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/standalone-task-create.html
Additionally, by creating an ECS service, you can set up AutoScaling to scale automatically.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/getting-started-fargate.html#create-linux-service
https://repost.aws/knowledge-center/ecs-fargate-service-auto-scaling
0
Task stopped at: 2024-05-09T06:49:08.402Z
InternalError: failed to create container model: failed to normalize image reference "https://hub.docker.com/repository/docker/digitalsplendid/rajeev". Launch a new task to retry.
answered 5 months ago
0
The task is now successfully created but error while deploying.
answered 5 months ago
Relevant content
- asked 6 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
This is the error message getting while trying to connect cluster with task as part of service: There was an error deploying cs50financeservice Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'." (RequestToken: 18117225-53b0-3189-70ff-8c3df0ff98e4, HandlerErrorCode: GeneralServiceException)
https://www.canva.com/design/DAGEtFDWgdE/aO0_yWZDpQ6UISrV3iY0pw/edit?utm_content=DAGEtFDWgdE&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton
First, check if you can start it as a single task without connecting to a service. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/standalone-task-create.html
Judging from the error message, it seems that the DockerHub image specification in the task definition is incorrect. To pull a container image from DockerHub's private registry, you will need authentication settings as described in the AWS blog below. https://aws.amazon.com/jp/blogs/containers/authenticating-with-docker-hub-for-aws-container-services/
Also, you should be able to specify the image by specifying the URL as shown below. I don't think "https://" etc. at the beginning is necessary.
Have you checked the container logs? If you configure logging, you will be able to check the container logs. https://docs.aws.amazon.com/prescriptive-guidance/latest/implementing-logging-monitoring-cloudwatch/ec2-fargate-logs.html
Also, is the subnet you are using with ECS a private subnet? In the case of a private subnet, if you do not set up a NAT Gateway etc., you will not be able to access DockerHub and startup will fail. https://docs.aws.amazon.com/AmazonECS/latest/bestpracticesguide/networking-outbound.html#networking-private-subnet