How to find the unused API 's in the Account

1

We have a around 300 apis, I want to find out the way to find the unused API in the account and then we will decomm.

  • Can you please write your question with more information ?

asked 11 days ago124 views
1 Answer
2

To find the unused API 's in the AWS Account, follow these steps:

  1. Open the AWS RAM console
  2. In the left navigation pane, choose 'Resource shares'.
  3. Select the resource share that you want to examine.
  4. On the 'Resources' tab, you can see a list of the resources that are included in the resource share.
  5. Scroll down to the 'API actions' section and expand it.
  6. You can see a list of all the API actions that are allowed by the resource share.
  7. To find the unused API 's, look for the API actions that are not used by any resources in the resource share.
  8. You can also use the AWS CLI to list the unused API 's in the AWS Account.
  9. Open the AWS CLI and run the following command:

aws ram list-resource-shares --resource-share-name my-resource-share

This will list all the resource shares in your AWS Account. 10. For each resource share, run the following command:

aws ram get-resource-share-permissions --resource-share-name my-resource-share --output json

AWS
answered 11 days 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.

Guidelines for Answering Questions