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?

已提問 1 年前檢視次數 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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南