Skip to content

AWS Lightsail Container Service Stuck in "PENDING" State and Cannot Be Deleted

0

Hello,

I have an AWS Lightsail container service that has been stuck in the "PENDING" state for over a month. I am unable to delete it either through the AWS Management Console or the AWS CLI.

Here are the details of the service:

  • Service Name: container-service-1
  • Region: us-east-2
  • Status: PENDING
  • State Detail: CREATING_NETWORK_INFRASTRUCTURE

When I attempt to delete the service using the AWS CLI, I receive the following error:

An error occurred (InvalidInputException) when calling the DeleteContainerService operation: The specified service "container-service-1" is in a transition state ("PENDING") and cannot be deleted.

I have already tried to redeploy the service to force a state change, but it had no effect.

Could you please advise on the next steps to get this service deleted?

Thank you for your help.

asked a year ago206 views

2 Answers
0

When a Lightsail container service is stuck in the "PENDING" state, it can be challenging to resolve as the service is in a transition state. The "PENDING" state indicates that your container service is still being created, specifically in the "CREATING_NETWORK_INFRASTRUCTURE" phase.

Unfortunately, container services in transition states like "PENDING" cannot be deleted directly, as indicated by the error message you received. This is because the service is still undergoing creation processes.

Here are some steps you can try to resolve this issue:

  1. Wait a bit longer: Although a month is an unusually long time, sometimes backend processes can take time to complete or time out.

  2. Try disabling the service first: Before attempting to delete, try disabling the container service using the update-container-service command with the --is-disabled flag set to true. This might change the state to "DISABLED", after which you may be able to delete it.

  3. Contact AWS Support: Since this issue has persisted for over a month, it likely indicates a backend problem with the service creation. AWS Support can help investigate and potentially force-delete the stuck resource from their end.

  4. Check for any dependencies: Ensure there are no dependencies or integrations that might be preventing the service from completing its creation.

  5. Try in a different region: If you need a container service urgently, you might need to create a new one in a different region while waiting for this issue to be resolved.

Since standard deletion methods aren't working and the service has been stuck for an extended period, reaching out to AWS Support is likely your best option for resolving this issue.
Sources
ContainerService - Amazon Lightsail
get-container-services — AWS CLI 2.27.41 Command Reference
Create a highly available container service with Lightsail - Amazon Lightsail
update-container-service — AWS CLI 2.27.41 Command Reference

answered a year ago

0

Hi,

We have confirmed that your container service has been successfully deployed. Please check again. Please reach out AWS support if the issue persists.

Thank you

AWS

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.