Skip to main content
This example uses curl to connect an AWS account via the InfraAudit API, wait for the initial sync to complete, and list the discovered resources. It takes about five minutes for accounts with a few hundred resources.

Prerequisites

Step 1: Connect the account

Response:
Save the provider ID:

Step 2: Wait for the initial sync

Poll the provider until status is synced:

Step 3: List discovered resources

Output:
Filter to EC2 instances only:

Step 4: Verify credential security

Credentials are encrypted at rest and never returned by the API. You can confirm this by checking the provider response fields:
No access keys appear in the response.

Next steps