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
- InfraAudit running and accessible
- A Bearer token (see API Authentication)
- An AWS IAM access key pair with the required read permissions (see Integrations: AWS)
Step 1: Connect the account
Step 2: Wait for the initial sync
Poll the provider untilstatus is synced:
Step 3: List discovered resources
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:Next steps
- Run a drift scan on the newly connected account
- Connect GCP or Azure using a similar flow