Aws Sdk Java - ReleaseAddress API response issue

0

We are using AWS java sdk 2. When we are trying to delete an elastic IP address that is mapped with a nat gateway, we are getting an authFailure error code instead of an inUse error code. For other resources, if we try delete a resource that is already in use, we are getting the inUse error code but releaseAddress is not returning the inUse error code.

Am I missing something or it is an issue on AWS API side?

질문됨 일 년 전189회 조회
1개 답변
0

Generally speaking, AuthFailure would relate to the IAM permissions, or could be related to an SCP policy applied to your account. This would be checked before anything else.

If you are having success deleting other addresses, then this may be due to tag based policies, for example.

[1] https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html#CommonErrors : Error codes for the Amazon EC2 API - Common client error codes [2] https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html : Controlling access to and for IAM users and roles using tags

AWS
지원 엔지니어
Wayne_G
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠