Troubleshooting¶
Common issues and their solutions.
AWS¶
Resource Explorer: "No aggregator index found" or 401 Unauthorized on Search¶
Argus needs an aggregator index and a default view in RESOURCE_EXPLORER_REGION (default us-east-1). Search fails with 401 Unauthorized if the region has no default view. Create both:
aws resource-explorer-2 create-index --region us-east-1
INDEX_ARN=$(aws resource-explorer-2 get-index --region us-east-1 --query Arn --output text)
aws resource-explorer-2 update-index-type --arn "$INDEX_ARN" --type AGGREGATOR --region us-east-1
# Search uses the region's default view; include tags so Argus sees them
VIEW_ARN=$(aws resource-explorer-2 create-view --view-name argus-all \
--included-properties Name=tags --region us-east-1 --query View.ViewArn --output text)
aws resource-explorer-2 associate-default-view --view-arn "$VIEW_ARN" --region us-east-1
The aggregator index can take a while to replicate resources from all regions after it's created. If resources show no tags, the default view is missing the tags property.
Cost Explorer: "OptInRequired" or all costs show $0¶
Cost Explorer must be activated in the AWS console before the API works:
- Go to AWS Cost Management → Cost Explorer
- Click Launch Cost Explorer (one-time activation, takes up to 24 hours)
Bedrock: "AccessDeniedException" for model invocation¶
You need to enable model access in the Bedrock console:
- Go to Amazon Bedrock → Model catalog (or search "Bedrock" in the AWS console and open Model access from the left nav)
- Find Claude Sonnet (Anthropic) and click Request access / Enable
- Access is usually granted instantly for Sonnet
Make sure BEDROCK_REGION matches the region where you enabled model access.
Bedrock: "INVALID_PAYMENT_INSTRUMENT"¶
This is a billing issue, not an IAM issue. AWS requires a valid payment method on the account before Bedrock can be used.
- Go to AWS Console → Account Settings → Payment methods
- Add or verify a payment method
- Wait ~1 minute for it to propagate, then retry the scan
Azure OpenAI: 400 BadRequest for o4-mini / o1 / o3 deployments¶
Reasoning models require a newer API version than the default (2024-10-21):
Argus automatically retries without temperature when a reasoning model rejects it — no extra config needed for that.
Note
Check Azure OpenAI API releases for the latest stable version that supports your model.
Pre-signed URL returns 403¶
The Lambda role needs both s3:PutObject and s3:GetObject on the report bucket. The SAM templates include both — if you customized IAM, verify the S3Reports policy statement.
GCP¶
"Cloud Asset API has not been enabled"¶
The deploy script enables these APIs automatically (but not Vertex AI). If running manually:
gcloud services enable \
cloudasset.googleapis.com \
monitoring.googleapis.com \
logging.googleapis.com \
bigquery.googleapis.com \
--project=$GOOGLE_CLOUD_PROJECT
For the default AI_PROVIDER=vertexai, also enable aiplatform.googleapis.com.
Billing data shows $0 for all resources¶
BigQuery billing export must be enabled:
- Go to GCP Console → Billing → Billing export → BigQuery export
- Note the full table name (format:
project.dataset.gcp_billing_export_v1_XXXXXX) - Set
BILLING_BQ_TABLEto the table name
Signed URL error: "iam.serviceAccounts.signBlob permission"¶
v4 signed URLs require the service account to have roles/iam.serviceAccountTokenCreator on itself. The deploy script handles this, but if you configured IAM manually:
gcloud iam service-accounts add-iam-policy-binding \
argus-sa@$PROJECT.iam.gserviceaccount.com \
--member="serviceAccount:argus-sa@$PROJECT.iam.gserviceaccount.com" \
--role="roles/iam.serviceAccountTokenCreator"
Azure¶
"AuthorizationFailed" on subscription scan¶
The managed identity needs Reader (and Cost Management Reader for cost data) at the subscription level. The Bicep template only assigns roles at the resource group level — you must grant subscription-level roles manually:
az role assignment create \
--assignee $PRINCIPAL_ID \
--role "Reader" \
--scope /subscriptions/$SUBSCRIPTION_ID
SAS URL returns 403¶
The managed identity needs two roles on the report storage account:
- Storage Blob Data Contributor — read/write blobs
- Storage Blob Delegator — required for
get_user_delegation_key()
The Bicep template assigns both when reportStorageAccount is set.
Azure Functions Core Tools: "command not found"¶
Install the Azure Functions Core Tools v4:
# macOS
brew tap azure/functions
brew install azure-functions-core-tools@4
# npm (any OS)
npm install -g azure-functions-core-tools@4
Slack¶
Webhook returns HTTP 403 or "invalid_token"¶
- Verify the webhook URL is correct and hasn't been revoked
- Check that the Slack app hasn't been uninstalled from the workspace
- Create a new webhook at api.slack.com/apps
Webhook returns HTTP 429¶
Slack rate-limits incoming webhooks to ~1 message per second. Argus sends one message per scan, so this shouldn't happen unless you're running multiple scans simultaneously.
General¶
"SLACK_WEBHOOK_URL is not set"¶
Every argus scan (local or deployed) checks for SLACK_WEBHOOK_URL at startup, even if you only send to Teams or a generic webhook via NOTIFICATION_PROVIDER. For local dev, add it to your .env file. For cloud deploys, it's set via the CloudFormation/Bicep/deploy.sh parameters.
To skip delivery during development, set DRY_RUN=true.
Scan finds zero resources¶
- AWS: Verify Resource Explorer has an aggregator index and a default view in
RESOURCE_EXPLORER_REGION, and has finished indexing - All clouds: Check
EXCLUDE_TAGS/EXCLUDE_RESOURCE_TYPES/IGNORE_REGIONSaren't filtering everything out - GCP: Verify
GCP_PROJECT_IDis set and the service account hasroles/cloudasset.viewer - Azure: Verify
AZURE_SUBSCRIPTION_IDSlists valid subscription IDs and Reader is granted
Preflight checks¶
Before every AWS scan Argus checks the environment and stops (exit code 4) when a result would be silently partial. Each failure prints the fix; this page explains the codes. --skip-preflight (or ARGUS_SKIP_PREFLIGHT=true) bypasses the checks, which is recorded in the report.
P1_IDENTITY¶
Information, or a warning when the caller's name looks like Administrator* or *FullAccess (a name-based check only; Argus makes no IAM calls to inspect policies). Scan with a dedicated read-only role: see IAM Permissions.
P2_RE_REACHABLE¶
Argus cannot list Resource Explorer indexes. Grant resource-explorer-2:ListIndexes (the full set is in IAM Permissions).
P3_AGGREGATOR_INDEX¶
Only local indexes exist (a search then covers one region and silently misses the rest), none exist, or the aggregator is in another region. Create an aggregator index in RESOURCE_EXPLORER_REGION, or set that variable to the region that has one. Commands are in the first section of this page.
P4_INDEX_STATE¶
Warning: the index is CREATING or UPDATING, so results may be partial. Wait until it is ACTIVE, then re-run.
P5_DEFAULT_VIEW¶
Warning: there is no default view in the aggregator region (or it cannot be read). Search still works, but results carry no tags, so policy excludes such as environment: prod and argus-exempt cannot work. Create a view that includes the tags property and associate it as the default (first section of this page).
P6_VIEW_TAGS¶
Warning: the default view does not include the tags property. Every resource looks untagged, so policy excludes such as environment: prod and argus-exempt cannot work. Add Name=tags to the view's included properties.
P8_COST_DATA¶
Warning: per-resource cost data is unavailable (resource-level data is not enabled, Cost Explorer is not activated, or the role lacks ce:GetCostAndUsageWithResources). Scans still run, but findings carry no billed cost (cost_basis: estimated). Enable resource-level data in the PAYER account: Cost Management > Cost Explorer settings > Resource-level data. Resource-level data covers only the last 14 days, so Argus requests at most 14 days of it.
P9_STATE_ACCESS¶
Warning: the scan role cannot call ec2:DescribeVolumes and/or ec2:DescribeAddresses. Scans still run, but the rules that find unattached EBS volumes, unassociated Elastic IPs and stopped instances are off, because those wastes leave no metric trace. Add the named actions to the role (see IAM Permissions).
Resource Explorer's 1,000-result limit¶
Resource Explorer Search returns at most 1,000 results in total. On larger accounts Argus logs resource_explorer_search_limit and the report's coverage.discovered can understate the real inventory. Argus then searches region by region, and splits a region that is still full by service and resource type (this needs resource-explorer-2:ListSupportedResourceTypes; without it coverage.discovery_complete is reported as false because services it has not seen cannot be ruled out). If a single resource type in one region still exceeds 1,000 resources, discovery_complete is false.
P7_SEARCH_PERMISSION¶
Search was denied or failed. The scan role needs resource-explorer-2:Search, GetView, GetDefaultView, ListViews, ListIndexes and GetIndex.