Adding a provider
1
Open Cloud Providers
In the sidebar, click Cloud Providers.
2
Choose your cloud
Click Connect provider and select the provider type.
3
Fill in credentials
Complete the credential form. Details for each provider type are below.
4
Connect
Click Connect. InfraAudit validates the credentials and starts the initial resource sync. The provider card shows Syncing while this runs.
AWS
You need an IAM user or role with read access. The minimum required policy:Credentials are encrypted at rest using AES-GCM with the server’s
ENCRYPTION_KEY. InfraAudit never stores plaintext credentials.GCP
You need a GCP service account with the following roles:roles/viewer— basic read access across the projectroles/bigquery.dataViewer— needed for BigQuery billing export
1
Create a service account
In the GCP console, go to IAM & Admin → Service Accounts. Create a new service account and assign the two roles above.
2
Download the JSON key
On the service account, create a key in JSON format and download it.
3
Paste into InfraAudit
In the InfraAudit credential form, paste the full JSON key file contents into the Service Account JSON field.
Azure
You need a service principal with the Reader role on your subscription. Create the service principal using the Azure CLI:clientId, clientSecret, tenantId, and subscriptionId. Copy all four.
Credential form fields:
Kubernetes
Connect a Kubernetes cluster by uploading a kubeconfig file or pasting its contents directly. Minimum RBAC permissions:
InfraAudit reads the active context in the kubeconfig and connects to that cluster.
Sync status
After connecting, the provider card shows one of the following statuses:
Resources sync every 6 hours by default; billing data syncs daily. To trigger an immediate sync:
Disconnecting a provider
Click the provider card, then Disconnect. This removes the stored credentials but keeps all historical scan data — resources, drifts, costs, and compliance results. Historical data is only deleted if you explicitly delete the provider record.Next steps
- Resources and inventory — browse what InfraAudit discovered
- Drift detection — run your first scan
- Kubernetes — Kubernetes-specific features and scans