Install
$ agentstack add skill-aws-samples-sample-ai-agent-skills-config-troubleshooting ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
AWS Config Diagnostics
When to use
Any AWS Config investigation where the console alone is insufficient — rule evaluation debugging, conformance pack troubleshooting, aggregator configuration, remediation automation failures, recorder issues, delivery channel problems, advanced query errors, multi-account setup, or integration issues.
Investigation workflow
Step 1 — Collect and triage
aws configservice describe-config-rules
aws configservice describe-compliance-by-config-rule
aws configservice get-compliance-details-by-config-rule --config-rule-name
aws configservice describe-configuration-recorders
aws configservice describe-configuration-recorder-status
aws configservice describe-delivery-channels
aws configservice describe-delivery-channel-status
aws cloudwatch get-metric-statistics --namespace AWS/Config --metric-name ConfigRulesEvaluationsFailed --start-time --end-time --period 3600 --statistics Sum
Step 2 — Domain deep dive
aws configservice describe-config-rule-evaluation-status --config-rule-names
aws configservice describe-conformance-packs
aws configservice describe-conformance-pack-status
aws configservice describe-configuration-aggregators
aws configservice describe-aggregation-authorizations
aws configservice describe-remediation-configurations --config-rule-names
aws configservice describe-remediation-execution-status --config-rule-name
Step 3 — Detailed investigation
aws configservice select-resource-config --expression "SELECT resourceId, resourceType WHERE resourceType = ''"
aws configservice get-resource-config-history --resource-type --resource-id
aws configservice describe-organization-config-rules
aws configservice describe-organization-conformance-packs
aws lambda get-function --function-name
aws ssm describe-automation-executions --filters Key=ExecutionId,Values=
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=config.amazonaws.com --max-results 20
Read references/config-guardrails.md before concluding on any AWS Config issue.
Tool quick reference
| Tool / API | When to use | |------------|-------------| | describe-config-rules | List all Config rules and their state | | describe-compliance-by-config-rule | Compliance summary per rule | | get-compliance-details-by-config-rule | Detailed compliance per resource | | describe-configuration-recorders | Recorder configuration and status | | describe-delivery-channels | Delivery channel configuration | | describe-config-rule-evaluation-status | Rule evaluation timing and errors | | describe-conformance-packs | Conformance pack details | | describe-configuration-aggregators | Aggregator configuration | | describe-aggregation-authorizations | Cross-account authorizations | | describe-remediation-configurations | Remediation setup per rule | | describe-remediation-execution-status | Remediation execution results | | select-resource-config | Advanced SQL queries on config data | | get-resource-config-history | Resource configuration timeline | | describe-organization-config-rules | Organization-wide rules | | describe-organization-conformance-packs | Organization conformance packs |
Gotchas: AWS Config
- Config recorder must be ON for rules to evaluate. If the recorder is stopped, rules will not receive configuration change events and periodic rules will not trigger. Always verify recorder status first.
- Delivery channel is required for recording. Without a valid delivery channel (S3 bucket + optional SNS topic), the recorder cannot persist configuration items. A misconfigured delivery channel silently prevents recording.
- Not all resource types are recorded by default. When "Record all resources" is selected, it covers most but not all types. Some resource types require explicit inclusion. Third-party resources require custom schemas.
- Custom rules use Lambda and inherit Lambda limits. Custom rules invoke Lambda functions — they are subject to Lambda concurrency limits, timeout (max 15 min), memory limits, and cold starts. Lambda throttling causes rule evaluation failures.
- Conformance packs are CloudFormation-based. They deploy as CloudFormation stacks. Stack failures, parameter errors, and template size limits (50 rules max per pack) apply. Organization conformance packs deploy to all member accounts.
- Remediation uses SSM Automation documents. Auto-remediation executes SSM Automation runbooks. The Config service role must have ssm:StartAutomationExecution permission. Remediation failures appear in SSM Automation execution history, not Config console.
- Aggregator requires authorization from source accounts. Multi-account aggregators need explicit authorization from each source account (or use Organizations). Without authorization, the aggregator shows no data from that account.
- Advanced queries use SQL-like syntax against configuration items. Queries run against the current configuration snapshot, not historical data. Complex queries may time out. The SELECT clause supports specific fields only — not all resource attributes are queryable.
- Config costs per configuration item recorded and rule evaluation. Each configuration item recorded costs money. Each rule evaluation costs money. High-frequency changes on many resources can lead to unexpected costs. Use resource type filtering to control costs.
Anti-hallucination rules
- Always cite specific rule names, evaluation results, or API responses as evidence.
- Config recorder must be running for rules to evaluate. Never assume rules work without verifying recorder status.
- Delivery channel must be valid for recording to persist. Never skip delivery channel verification.
- Custom rules are Lambda functions with Lambda limits. Never ignore Lambda-side errors.
- Conformance packs have a 50-rule limit per pack. Never suggest exceeding this.
- Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.
26 runbooks
| Category | IDs | Covers | |----------|-----|--------| | A — Rules | A1-A3 | Rule evaluation failures, custom rule Lambda errors, managed rule issues | | B — Conformance | B1-B2 | Conformance pack failures, organization conformance | | C — Aggregator | C1-C2 | Aggregator issues, cross-account authorization | | D — Remediation | D1-D2 | Auto-remediation failures, SSM automation errors | | E — Recorder | E1-E3 | Recorder configuration, delivery channel, resource types | | F — Advanced Query | F1-F2 | Query errors, query performance | | G — Multi-Account | G1-G2 | Organization rules, delegated administrator | | H — Integration | H1-H2 | Security Hub integration, S3 delivery | | Z — Catch-All | Z1 | General troubleshooting |
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: aws-samples
- Source: aws-samples/sample-ai-agent-skills
- License: MIT-0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.