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 ?

demandé il y a un mois138 vues
1 réponse
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
répondu il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions