Agent Parser GPU Host Bootstrap
Use this skill only when the issue is below the ECS service layer.
Trigger Signs
- capacity provider exists but usable container instances are missing
- ECS container instance has no GPU resource
nvidia-smiworks but ECS placement still fails- stale/inactive container instance re-registration
- permissions boundary blocks
ecs:RegisterContainerInstance
Core Rules
- Debug host bootstrap before changing task definitions again.
- Treat
nvidia-smisuccess as necessary but not sufficient. - Inspect ECS GPU as
STRINGSETUUIDs, not just integer counters. - If local ECS state is stale, clear
/var/lib/ecs/data/*before re-testing service placement.
Known Incident Patterns
- one host had no
/var/lib/ecs/gpu/nvidia-gpu-info.json - another host had GPU but re-registration failed until stale ECS state was cleared
- permissions boundary can silently override attached IAM policy fixes
- old root volumes were too small for
vllm+model-apiimage pulls;CannotPullContainerError ... no space left on devicerequired raising the GPU host root EBS volume to200 GiB - an ASG recycle can still fail to register if the live launch template keeps old user-data with
systemctl enable --now ecs; this can leaveecs.serviceinactive (dead)while cloud-init is still running - preferred bootstrap pattern is
systemctl enable ecsplus a delayed asyncstart/restart, notenable --now - ASGs created with
new-instances-protected-from-scale-inmay ignoredesired=0until scale-in protection is removed or instances are explicitly terminated
Output Contract
Return:
- whether the host failure is discovery, registration, or IAM boundary
- whether launch template user-data or root volume size must be corrected before another recycle
- what host-level fix is required before service-level deploy changes