Skip to content

ecs capacity provider 삭제 에러

0

aws ecs delete-capacity-provider --capacity-provider a

An error occurred (ServerException) when calling the DeleteCapacityProvider operation (reached max retries: 2): Service Unavailable. Please try again later.

asked 5 months ago92 views

2 Answers
0

이 오류는 AWS ECS 서비스가 일시적으로 사용 불가능한 상태일 때 발생합니다. 이는 일반적으로 일시적인 서비스 문제이므로, 다음과 같은 방법을 시도해 보시기 바랍니다:

  1. 잠시 후 재시도: 몇 분 정도 기다린 후 동일한 명령어를 다시 실행해 보세요.

  2. Capacity Provider 상태 확인: 삭제하기 전에 capacity provider의 현재 상태를 확인하세요:

aws ecs describe-capacity-providers --capacity-providers a
  1. 삭제 전 필수 조건 확인: Capacity provider를 삭제하기 전에 다음 사항들이 충족되어야 합니다:
  • 모든 서비스의 capacity provider 전략에서 해당 capacity provider가 제거되어야 합니다
  • Capacity provider가 클러스터와 연결되어 있지 않아야 합니다
  • UpdateService API를 사용하여 서비스에서 capacity provider를 제거할 수 있습니다
  1. 클러스터 연결 해제: Capacity provider가 클러스터와 연결되어 있다면, PutClusterCapacityProviders를 사용하여 연결을 해제하거나 클러스터를 삭제해야 합니다.

참고: FARGATE 및 FARGATE_SPOT capacity provider는 예약되어 있어 삭제할 수 없습니다.

문제가 지속되면 AWS Support Center(https://console.aws.amazon.com/support/)를 통해 추가 지원을 요청하실 수 있습니다.
Sources
Troubleshoot Amazon ECS cluster deletion issues | AWS re:Post
Deleting an Amazon ECS capacity provider - Amazon Elastic Container Service
Amazon ECS examples using AWS CLI - AWS SDK Code Examples
DeleteCapacityProvider - Amazon Elastic Container Service

answered 5 months ago

0

It's not a temporary service issue I deleted the VPC first and capacity provider became orphaned, so it won't delete. Please delete it. 일시적인 서비스 문제가 아니라 vpc를 먼저 지웠더니 고아가 됐어요 그래서 안지워짐요 삭제좀요

answered 5 months 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.