Difference between revisions of "Amazon ECS Agent"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
[[/var/log/ecs/]] | [[/var/log/ecs/]] | ||
[[/var/log/ecs/ecs-agent.log]] | [[/var/log/ecs/ecs-agent.log]] | ||
+ | [[/var/lib/ecs/data/agent.db]] | ||
− | sudo [[amazon-linux-extras install]] -y ecs; sudo systemctl enable --now ecs | + | sudo [[amazon-linux-extras install]] -y ecs; sudo [[systemctl enable]] --now ecs |
Line 15: | Line 16: | ||
level=critical time=2023-04-18T10:35:41Z msg="The current instance type does not match the registered instance type. Please revert the instance type change, or alternatively launch a new instance: ClientException: Container instance type changes are not supported. Container instance 1212232432534534536 was previously registered as [[c5a.2xlarge]]." module=agent.go | level=critical time=2023-04-18T10:35:41Z msg="The current instance type does not match the registered instance type. Please revert the instance type change, or alternatively launch a new instance: ClientException: Container instance type changes are not supported. Container instance 1212232432534534536 was previously registered as [[c5a.2xlarge]]." module=agent.go | ||
+ | |||
+ | |||
+ | {{The closest matching container-instance}} | ||
+ | |||
+ | [[user_data]] | ||
== See also == | == See also == | ||
+ | * {{Amazon ECS Agent}} | ||
* {{ECS}} | * {{ECS}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 14:08, 14 July 2023
/etc/ecs/ecs.config /var/log/ecs/ /var/log/ecs/ecs-agent.log /var/lib/ecs/data/agent.db
sudo amazon-linux-extras install -y ecs; sudo systemctl enable --now ecs
sudo service ecs start /etc/ecs/ecs.config
systemctl start ecs
level=critical time=2023-04-18T10:35:41Z msg="The current instance type does not match the registered instance type. Please revert the instance type change, or alternatively launch a new instance: ClientException: Container instance type changes are not supported. Container instance 1212232432534534536 was previously registered as c5a.2xlarge." module=agent.go
service your-service was unable to place a task because no container instance met all of its requirements. The closest matching container-instance xxxxxxxxx doesn't have the agent connected. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide.
user_data
See also[edit]
- Amazon ECS Agent,
/etc/ecs/ecs.config, /var/log/ecs/ecs-agent.log
- Amazon ECS, Service, Tasks (Task overview), capacity providers, Cluster Auto Scaling (CAS),
aws ecs, ecs-cli, ~/.ecs/config
, AWS Copilot, AWS Fargate, AWS CloudWatch Container Insights,/etc/ecs/ecs.config
, Security group (SG), container agent, task definition, Amazon ECS events, best practices, Amazon ECS Exec Checker, Amazon ECS Agent, Service Connect,AWSServiceRoleForECS
, Terraform ECS, AWS ECS Rolling deployments
Advertising: