Troubleshooting Amazon ECS Amazon ECS Managed Instances errors
The following are some Amazon ECS Managed Instances error messages and actions that you can take to fix the errors.
Amazon ECS Managed Instances Provider is not supported without a Cluster Name
This error occurs when you try to create a capacity provider with a Amazon ECS Managed Instances provider parameter but no cluster field.
To resolve this issue, specify a valid cluster name when creating the capacity provider.
The Amazon ECS Managed Instances provider details are required when creating a Amazon ECS Managed Instances capacity provider
This error appears when you try to create a capacity provider with Amazon ECS Managed Instances provider but do not supply the actual object.
To correct this issue, specify valid Amazon ECS Managed Instances provider details and try again.
Amazon ECS Managed Instances capacity provider must specify an instance profile
You'll see this error when you try to create a capacity provider with Amazon ECS Managed Instances provider but do not provide the Ec2InstanceProfile.
To resolve this, specify a valid EC2 instance profile for your Amazon ECS Managed Instances capacity provider. For more information, see Amazon ECS Managed Instances instance profile.
Amazon ECS Managed Instances capacity provider must specify an InfrastructureRole
This message appears when you try to create a capacity provider with Amazon ECS Managed Instances provider but do not provide the InfrastructureRole.
To correct this, specify a valid infrastructure role for your Amazon ECS Managed Instances capacity provider. For more information, see Amazon ECS infrastructure IAM role.
Amazon ECS Managed Instances capacity provider must specify a Network Configuration
You'll encounter this error when you try to create a capacity provider with Amazon ECS Managed Instances provider but do not provide network configuration.
To resolve this, specify a valid network configuration with non-empty subnets for your Amazon ECS Managed Instances capacity provider. For more information, see Amazon ECS task networking for Amazon ECS Managed Instances.
No instance types satisfy the instance requirements specified in the Amazon ECS Managed Instances capacity provider
This happens when you try to create a capacity provider with Amazon ECS Managed Instances provider but no EC2 instance type satisfies the instance requirements.
To address this, review and adjust your instance requirements to match available EC2 instance types.
The specified infrastructure role arn is invalid
This error occurs when the InfrastructureRole does not follow the specific ARN format.
Expected format: arn:partition:iam::account-id:role/role-name. Specify a valid role ARN and try again. For more information, see Amazon ECS infrastructure IAM role.
The specified instance profile role arn is invalid
This error occurs when the instance profile does not follow the specific ARN format.
Expected format: arn:partition:iam::account-id:instance-profile/profile-name. Specify a valid role ARN and try again. For more information, see Amazon ECS Managed Instances instance profile.
The specified security group id is invalid
This error occurs when the security group ID does not follow the specific format.
Expected format: sg-xxxxxxxx or sg-xxxxxxxxxxxxxxxxxx (8 or 17 characters including letters (lowercase), and numbers after 'sg-'). Specify a security group ID and try again.
The specified subnet id is invalid
This error occurs when the subnet ID does not follow the specific format.
Expected format: subnet-xxxxxxxx or subnet-xxxxxxxxxxxxxxxxxx (8 or 17 characters including letters (lowercase), and numbers after 'subnet-'). Specify a subnet ID and try again.
Amazon ECS Managed Instances capacity provider must specify a Network Configuration with non empty subnets
This error occurs when you try to create a capacity provider with Amazon ECS Managed Instances provider and network configuration with empty subnets.
To resolve this, specify a valid network configuration with non-empty subnets for your Amazon ECS Managed Instances capacity provider.
Amazon ECS Managed Instances capacity provider cannot have number of tags exceeding maximum allowed value
This error occurs when you try to create a capacity provider with more than the maximum allowed number of tags (45).
To resolve this, reduce the number of tags to 45 or fewer and try again.
Invalid value for propagateTags
This error occurs when you try to create a capacity provider with an invalid propagateTags value.
The value must be one of the valid propagateTags values. Specify a valid value and try again.
The specified capacity provider already exists with cluster scope
This error occurs when you try to create, update, or delete a Amazon ECS Managed Instances capacity provider without a cluster name, but there is an existing cluster-scoped capacity provider.
To change the configuration of or delete the capacity provider, update or delete the capacity provider with the cluster parameter.
The specified capacity provider already exists with account or a different cluster
This error occurs when you try to create, update, or delete a Amazon ECS Managed Instances capacity provider with a cluster field, while there is an existing account-scoped capacity provider or an existing cluster-scoped capacity provider for a different cluster.
To resolve this, use a different capacity provider name or work with the existing capacity provider.
Capacity provider active cluster name does not match the cluster name in the request
This error occurs when the capacity provider's active cluster name does not match the cluster name specified in the request.
Ensure that the cluster name in your request matches the capacity provider's associated cluster.
Capacity provider is not Amazon ECS Managed Instances capacity provider
This error occurs when you try to use a capacity provider that is not a Amazon ECS Managed Instances capacity provider in a context that requires one.
Ensure you are using a valid Amazon ECS Managed Instances capacity provider for your request.
CapacityProvider name must not be blank
This error occurs when you try to create a capacity provider without specifying a capacity provider name.
Specify a valid capacity provider name and try again.
A name is required when updating a capacity provider
This error occurs when you try to update a capacity provider without specifying a capacity provider name.
Specify a valid name and try again.
Tags can not be null or have null elements
This error occurs when you try to tag a capacity provider with null values.
Ensure all tag values are properly specified and not null.