Config Inventory
Fetches a full inventory snapshot of AWS resource configurations using AWS Config's SelectResourceConfig API.
Details
AWS Config continuously records the configuration state of your AWS resources. This input queries AWS Config to retrieve a full snapshot of resource configurations for one or more resource types. Each record includes the resource's ID, type, ARN, account, region, configuration details, tags, and relationships.
Use this input to build an up-to-date asset inventory or to detect configuration drift across your AWS environment.
Functionality
On each run, Monad queries AWS Config for every resource type listed in Resource Types. For each type, it pages through all results and emits one record per resource. Resources with a configurationItemStatus of ResourceNotRecorded are skipped. Every run is a full snapshot — there is no incremental cursor.
Requirements
- AWS Config must be enabled with an active configuration recorder in the target region.
- The authenticated principal must have the following IAM permission:
Code
Configuration
Settings
| Setting | Type | Required | Description |
|---|---|---|---|
| Region | string | Yes | The AWS region to query AWS Config in. |
| Authentication | one of | Yes | Authentication method. Choose IAM Role (recommended) or Static Credentials. |
| Resource Types | array of string | Yes | One or more AWS Config resource type strings to query. At least one value is required. |
IAM Role (recommended)
| Field | Type | Required | Description |
|---|---|---|---|
| Role ARN | string | Yes | ARN of the IAM role to assume (e.g. arn:aws:iam::123456789012:role/MonadRole). |
Static Credentials
| Field | Type | Required | Description |
|---|---|---|---|
| Access Key | secret | Yes | AWS access key ID. |
| Secret Key | secret | Yes | AWS secret access key. |
Resource Types
The Resource Types field accepts any valid AWS Config resource type string. The full list of supported resource types is maintained by AWS:
Common examples:
| Resource Type | Description |
|---|---|
AWS::EC2::Instance | EC2 instances |
AWS::EC2::SecurityGroup | EC2 security groups |
AWS::EC2::VPC | VPCs |
AWS::S3::Bucket | S3 buckets |
AWS::IAM::Role | IAM roles |
AWS::IAM::User | IAM users |
AWS::IAM::Policy | IAM policies |
AWS::RDS::DBInstance | RDS database instances |
AWS::Lambda::Function | Lambda functions |
AWS::EKS::Cluster | EKS clusters |
AWS::KMS::Key | KMS keys |
AWS::CloudTrail::Trail | CloudTrail trails |
Related Articles
Sample Record
Code