Type mapping coverage
scan and whois match a live resource with a state resource through the type mapping: a Terraform type, the CloudFormation type that AWS Config, Resource Explorer and Cloud Control report, and the keys to match on. A type with no mapping is undetermined. tfcensus never counts it as managed, because it can't tell which state could manage it.
The table lists every resource type of the AWS provider. A mapped type shows its CloudFormation type, the inventory layers that list it with the default config, and its match keys in the order matching tries them: identity, then ARN, then ID. A type that no layer lists is still mapped for whois, which looks resources up by ARN or ID.
136 types
| Terraform type | CloudFormation type | Listed by | Match keys | Notes |
|---|---|---|---|---|
aws_acm_certificate | AWS::ACM::Certificate | config, resource-explorer | identity, arn, id | |
aws_alb | AWS::ElasticLoadBalancingV2::LoadBalancer | config, resource-explorer | identity, arn, id | |
aws_alb_listener | AWS::ElasticLoadBalancingV2::Listener | config, resource-explorer | identity, arn, id | |
aws_alb_target_group | AWS::ElasticLoadBalancingV2::TargetGroup | config, resource-explorer | identity, arn, id | |
aws_api_gateway_base_path_mapping | AWS::ApiGateway::BasePathMapping | arn, id | not listed: AWS Config doesn't record base path mappings and Resource Explorer doesn't index them | |
aws_api_gateway_deployment | AWS::ApiGateway::Deployment | resource-explorer | identity, arn, id | |
aws_api_gateway_domain_name | AWS::ApiGateway::DomainName | arn, id | not listed: AWS Config doesn't record REST API domain names and Resource Explorer doesn't index them | |
aws_api_gateway_method | AWS::ApiGateway::Method | config, resource-explorer | identity, arn, id | |
aws_api_gateway_resource | AWS::ApiGateway::Resource | resource-explorer | identity, arn, id | derived from AWS::ApiGateway::RestApi |
aws_api_gateway_rest_api | AWS::ApiGateway::RestApi | config, resource-explorer | identity, arn, id | |
aws_api_gateway_stage | AWS::ApiGateway::Stage | config, resource-explorer | arn, id | |
aws_apprunner_auto_scaling_configuration_version | AWS::AppRunner::AutoScalingConfiguration | resource-explorer | identity, arn, id | |
aws_athena_data_catalog | AWS::Athena::DataCatalog | config, resource-explorer | arn, id | |
aws_athena_workgroup | AWS::Athena::WorkGroup | config, resource-explorer | arn, id | |
aws_backup_plan | AWS::Backup::BackupPlan | config, resource-explorer | identity, arn, id | |
aws_backup_selection | AWS::Backup::BackupSelection | config | identity, id | |
aws_backup_vault | AWS::Backup::BackupVault | config, resource-explorer | identity, arn, id | |
aws_cloudformation_stack | AWS::CloudFormation::Stack | config, resource-explorer | arn, id | |
aws_cloudwatch_dashboard | AWS::CloudWatch::Dashboard | resource-explorer | identity, arn, id | |
aws_cloudwatch_event_bus | AWS::Events::EventBus | config, resource-explorer | identity, arn, id | |
aws_cloudwatch_event_rule | AWS::Events::Rule | config, resource-explorer | identity, arn, id | |
aws_cloudwatch_log_group | AWS::Logs::LogGroup | resource-explorer | identity, arn, id | |
aws_cloudwatch_metric_alarm | AWS::CloudWatch::Alarm | config, resource-explorer | identity, arn, id | |
aws_codebuild_project | AWS::CodeBuild::Project | config, resource-explorer | identity, arn, id | |
aws_codepipeline | AWS::CodePipeline::Pipeline | config, resource-explorer | identity, arn, id | |
aws_customer_gateway | AWS::EC2::CustomerGateway | config, resource-explorer | arn, id | |
aws_db_instance | AWS::RDS::DBInstance | config, resource-explorer | identity, arn, id | |
aws_db_option_group | AWS::RDS::OptionGroup | config, resource-explorer | arn, id | |
aws_db_parameter_group | AWS::RDS::DBParameterGroup | resource-explorer | identity, arn, id | |
aws_db_subnet_group | AWS::RDS::DBSubnetGroup | config, resource-explorer | identity, arn, id | |
aws_default_network_acl | AWS::EC2::NetworkAcl | config, resource-explorer | arn, id | |
aws_default_route_table | AWS::EC2::RouteTable | config, resource-explorer, native:ec2-nat-gateways | arn, id | |
aws_default_security_group | AWS::EC2::SecurityGroup | config, resource-explorer | identity, arn, id | |
aws_default_vpc_dhcp_options | AWS::EC2::DHCPOptions | config, resource-explorer | arn, id | |
aws_dynamodb_table | AWS::DynamoDB::Table | config, resource-explorer | identity, arn, id | |
aws_ebs_volume | AWS::EC2::Volume | config, resource-explorer | identity, arn, id | |
aws_ec2_client_vpn_endpoint | AWS::EC2::ClientVpnEndpoint | config, resource-explorer | arn, id | |
aws_ec2_managed_prefix_list | AWS::EC2::PrefixList | config, resource-explorer | arn, id | |
aws_ecr_repository | AWS::ECR::Repository | config, resource-explorer | identity, arn, id | |
aws_efs_access_point | AWS::EFS::AccessPoint | config, resource-explorer | identity, arn, id | |
aws_efs_file_system | AWS::EFS::FileSystem | config, resource-explorer | identity, arn, id | |
aws_efs_mount_target | AWS::EFS::MountTarget | identity, id | not listed: a mount target has no ARN, and neither AWS Config nor Resource Explorer lists it; its network interface is listed and is derived (service-eni) | |
aws_eip | AWS::EC2::EIP | config, resource-explorer | identity, arn, id | |
aws_eip_association | AWS::EC2::EIPAssociation | config | id | |
aws_eks_access_entry | AWS::EKS::AccessEntry | identity, arn | not listed: AWS Config doesn't record access entries and Resource Explorer doesn't index them | |
aws_eks_addon | AWS::EKS::Addon | config, resource-explorer | identity, arn, id | |
aws_eks_cluster | AWS::EKS::Cluster | config, resource-explorer | identity, arn, id | |
aws_eks_node_group | AWS::EKS::Nodegroup | identity, arn, id | not listed: AWS Config doesn't record node groups and Resource Explorer doesn't index them; their instances and launch templates are listed and are derived | |
aws_eks_pod_identity_association | AWS::EKS::PodIdentityAssociation | resource-explorer, native:eks-pod-identity | identity, arn, id | |
aws_elasticache_replication_group | AWS::ElastiCache::ReplicationGroup | resource-explorer | arn, id | |
aws_elasticache_user | AWS::ElastiCache::User | resource-explorer | arn, id | |
aws_elasticache_user_group | AWS::ElastiCache::UserGroup | resource-explorer | arn, id | |
aws_flow_log | AWS::EC2::FlowLog | config, resource-explorer | identity, arn, id | |
aws_glue_catalog_database | AWS::Glue::Database | config, resource-explorer | arn, id | |
aws_glue_catalog_table | AWS::Glue::Table | resource-explorer | identity, arn, id | |
aws_iam_group | AWS::IAM::Group | config, resource-explorer, native:iam-attachments | identity, arn, id | |
aws_iam_group_policy | AWS::IAM::GroupPolicy | native:iam-attachments | id | |
aws_iam_group_policy_attachment | Native::IAM::GroupPolicyAttachment | native:iam-attachments | identity | |
aws_iam_instance_profile | AWS::IAM::InstanceProfile | config, resource-explorer | identity, arn, id | |
aws_iam_openid_connect_provider | AWS::IAM::OIDCProvider | config, resource-explorer | identity, arn, id | |
aws_iam_policy | AWS::IAM::ManagedPolicy | config, resource-explorer, native:iam-attachments | identity, arn, id | |
aws_iam_policy_attachment | Native::IAM::RolePolicyAttachmentNative::IAM::UserPolicyAttachmentNative::IAM::GroupPolicyAttachment | native:iam-attachments | identity, rule tuple | |
aws_iam_role | AWS::IAM::Role | config, resource-explorer, native:iam-attachments | identity, arn, id | |
aws_iam_role_policy | AWS::IAM::RolePolicy | native:iam-attachments | identity, id | |
aws_iam_role_policy_attachment | Native::IAM::RolePolicyAttachment | native:iam-attachments | identity, id | |
aws_iam_user | AWS::IAM::User | config, resource-explorer, native:iam-attachments | identity, arn, id | |
aws_iam_user_policy | AWS::IAM::UserPolicy | native:iam-attachments | identity, id | |
aws_iam_user_policy_attachment | Native::IAM::UserPolicyAttachment | native:iam-attachments | identity, id | |
aws_instance | AWS::EC2::Instance | config, resource-explorer | identity, arn, id | |
aws_internet_gateway | AWS::EC2::InternetGateway | config, resource-explorer | identity, arn, id | |
aws_kinesisanalyticsv2_application | AWS::KinesisAnalyticsV2::Application | config, resource-explorer | arn, id | |
aws_kms_alias | AWS::KMS::Alias | config | identity, arn, id | |
aws_kms_key | AWS::KMS::Key | config, resource-explorer | identity, arn, id | |
aws_lambda_event_source_mapping | AWS::Lambda::EventSourceMapping | resource-explorer | identity, arn, id | |
aws_lambda_function | AWS::Lambda::Function | config, resource-explorer | identity, arn, id | |
aws_lambda_layer_version | AWS::Lambda::LayerVersion | resource-explorer | identity, arn, id | |
aws_launch_template | AWS::EC2::LaunchTemplate | config, resource-explorer | identity, arn, id | |
aws_lb | AWS::ElasticLoadBalancingV2::LoadBalancer | config, resource-explorer | identity, arn, id | |
aws_lb_listener | AWS::ElasticLoadBalancingV2::Listener | config, resource-explorer | identity, arn, id | |
aws_lb_listener_rule | AWS::ElasticLoadBalancingV2::ListenerRule | resource-explorer | identity, arn, id | |
aws_lb_target_group | AWS::ElasticLoadBalancingV2::TargetGroup | config, resource-explorer | identity, arn, id | |
aws_memorydb_acl | AWS::MemoryDB::ACL | resource-explorer | arn, id | |
aws_memorydb_parameter_group | AWS::MemoryDB::ParameterGroup | resource-explorer | arn, id | |
aws_memorydb_user | AWS::MemoryDB::User | resource-explorer | arn, id | |
aws_msk_cluster | AWS::MSK::Cluster | config, resource-explorer | identity, arn, id | |
aws_msk_configuration | AWS::MSK::Configuration | config, resource-explorer | arn, id | |
aws_nat_gateway | AWS::EC2::NatGateway | config, resource-explorer | identity, arn, id | |
aws_network_acl | AWS::EC2::NetworkAcl | config, resource-explorer | identity, arn, id | |
aws_network_acl_association | AWS::EC2::SubnetNetworkAclAssociation | id | not listed: AWS Config records the association inside the network ACL item, and Resource Explorer doesn't index it | |
aws_network_interface | AWS::EC2::NetworkInterface | config, resource-explorer | identity, arn, id | |
aws_opensearch_domain | AWS::OpenSearchService::Domain | config, resource-explorer | arn, id | |
aws_pipes_pipe | AWS::Pipes::Pipe | resource-explorer | arn, id | |
aws_quicksight_data_source | AWS::QuickSight::DataSource | config, resource-explorer | arn, id | |
aws_quicksight_vpc_connection | AWS::QuickSight::VPCConnection | arn, id | not listed: AWS Config doesn't record QuickSight VPC connections and Resource Explorer doesn't index them | |
aws_rds_cluster | AWS::RDS::DBCluster | config, resource-explorer | identity, arn, id | |
aws_resourceexplorer2_index | AWS::ResourceExplorer2::Index | config, resource-explorer | identity, arn, id | |
aws_resourceexplorer2_view | AWS::ResourceExplorer2::View | resource-explorer | identity, arn, id | |
aws_route53_record | AWS::Route53::RecordSet | native:route53-records | identity, id | derived from AWS::Route53::HostedZone |
aws_route53_resolver_rule | AWS::Route53Resolver::ResolverRule | config, resource-explorer | identity, arn, id | |
aws_route53_resolver_rule_association | AWS::Route53Resolver::ResolverRuleAssociation | config | identity, id | |
aws_route53_zone | AWS::Route53::HostedZone | config, resource-explorer | identity, arn, id | |
aws_route_table | AWS::EC2::RouteTable | config, resource-explorer, native:ec2-nat-gateways | identity, arn, id | |
aws_route_table_association | AWS::EC2::SubnetRouteTableAssociation | config | identity, id | |
aws_s3_bucket | AWS::S3::Bucket | config, resource-explorer | identity, arn, id | |
aws_s3_bucket_lifecycle_configuration | Native::S3::BucketLifecycle | native:s3-subresources | identity, id | |
aws_s3_bucket_policy | AWS::S3::BucketPolicy | native:s3-subresources | identity, id | |
aws_s3_bucket_public_access_block | Native::S3::BucketPublicAccessBlock | native:s3-subresources | identity, id | derived from AWS::S3::Bucket |
aws_s3_bucket_server_side_encryption_configuration | Native::S3::BucketEncryption | native:s3-subresources | identity, id | derived from AWS::S3::Bucket |
aws_s3_bucket_versioning | Native::S3::BucketVersioning | native:s3-subresources | identity, id | derived from AWS::S3::Bucket |
aws_scheduler_schedule_group | AWS::Scheduler::ScheduleGroup | resource-explorer | arn, id | |
aws_secretsmanager_secret | AWS::SecretsManager::Secret | config, resource-explorer | identity, arn, id | |
aws_security_group | AWS::EC2::SecurityGroup | config, resource-explorer | identity, arn, id | |
aws_security_group_rule | AWS::EC2::SecurityGroupIngressAWS::EC2::SecurityGroupEgress | native:ec2-sg-rules | rule tuple | |
aws_sns_topic | AWS::SNS::Topic | config, resource-explorer | identity, arn, id | |
aws_sqs_queue | AWS::SQS::Queue | config, resource-explorer | identity, arn, id | |
aws_ssm_association | AWS::SSM::Association | resource-explorer | identity, arn, id | |
aws_ssm_parameter | AWS::SSM::Parameter | resource-explorer | identity, arn, id | |
aws_subnet | AWS::EC2::Subnet | config, resource-explorer | identity, arn, id | |
aws_vpc | AWS::EC2::VPC | config, resource-explorer | identity, arn, id | |
aws_vpc_dhcp_options | AWS::EC2::DHCPOptions | config, resource-explorer | arn, id | |
aws_vpc_endpoint | AWS::EC2::VPCEndpoint | config, resource-explorer | identity, arn, id | |
aws_vpc_endpoint_service | AWS::EC2::VPCEndpointService | config, resource-explorer | arn, id | |
aws_vpc_ipv4_cidr_block_association | AWS::EC2::VPCCidrBlock | id | not listed: AWS Config records the CIDR inside the VPC item, and Resource Explorer doesn't index it | |
aws_vpc_peering_connection | AWS::EC2::VPCPeeringConnection | config, resource-explorer | arn, id | |
aws_vpc_peering_connection_accepter | AWS::EC2::VPCPeeringConnection | config, resource-explorer | arn, id | |
aws_vpc_security_group_egress_rule | AWS::EC2::SecurityGroupEgress | native:ec2-sg-rules | identity, id | |
aws_vpc_security_group_ingress_rule | AWS::EC2::SecurityGroupIngress | native:ec2-sg-rules | identity, id | |
aws_vpclattice_resource_configuration | AWS::VpcLattice::ResourceConfiguration | cloudcontrol | arn, id | derived from AWS::VpcLattice::ResourceConfiguration |
aws_vpclattice_resource_gateway | AWS::VpcLattice::ResourceGateway | cloudcontrol | arn, id | |
aws_vpclattice_service_network | AWS::VpcLattice::ServiceNetwork | resource-explorer | arn, id | |
aws_vpclattice_service_network_resource_association | AWS::VpcLattice::ServiceNetworkResourceAssociation | cloudcontrol | arn, id | |
aws_vpclattice_service_network_vpc_association | AWS::VpcLattice::ServiceNetworkVpcAssociation | cloudcontrol | arn, id | |
aws_vpn_connection | AWS::EC2::VPNConnection | config, resource-explorer | arn, id | |
aws_vpn_gateway | AWS::EC2::VPNGateway | config, resource-explorer | arn, id | |
aws_xray_group | AWS::XRay::Group | identity, arn, id | not listed: AWS Config doesn't record X-Ray groups and Resource Explorer doesn't index them | |
aws_xray_sampling_rule | AWS::XRay::SamplingRule | resource-explorer | identity, arn, id |
scan --explain-coverage prints the same facts for your own accounts: which layer listed each type in each account and region, and the AWS Config types that scan doesn't map, with counts.
Inventory layers
| Layer | Runs | Types | Lists |
|---|---|---|---|
config | each region | 75 | AWS Config's recorded resources, through SelectResourceConfig (or the aggregator's SelectAggregateResourceConfig). Runs where a recorder is recording. |
resource-explorer, re | each region | 94 | Resource Explorer's index, through ListResources on the default view. Runs where an index has a default view. |
native:ec2-sg-rules | each region | AWS::EC2::SecurityGroupEgress, AWS::EC2::SecurityGroupIngress | Security group rules, through ec2:DescribeSecurityGroupRules. AWS Config reports them only inside the group. |
native:ec2-nat-gateways | each region | AWS::EC2::RouteTable | The route tables that regional NAT gateways create, through ec2:DescribeNatGateways. |
native:iam-attachments | once per account | AWS::IAM::Role, AWS::IAM::User, AWS::IAM::Group, AWS::IAM::ManagedPolicy, AWS::IAM::RolePolicy, AWS::IAM::UserPolicy, AWS::IAM::GroupPolicy, Native::IAM::GroupPolicyAttachment, Native::IAM::RolePolicyAttachment, Native::IAM::UserPolicyAttachment | Managed policy attachments and inline policies of roles, users and groups, through iam:GetAccountAuthorizationDetails. |
native:route53-records | once per account | AWS::Route53::RecordSet | Record sets of every hosted zone, through route53:ListResourceRecordSets. |
native:s3-subresources | each region | Native::S3::BucketEncryption, Native::S3::BucketLifecycle, Native::S3::BucketPublicAccessBlock, Native::S3::BucketVersioning, AWS::S3::BucketPolicy | Bucket policy, versioning, lifecycle, encryption and public access block, which Terraform manages as resources of their own, through the S3 GetBucket* calls. |
native:eks-pod-identity | each region | AWS::EKS::PodIdentityAssociation | EKS Pod Identity associations of the clusters another layer found, through eks:ListPodIdentityAssociations. |
cloudcontrol, cc | each region | 4 | Cloud Control ListResources for the types that neither AWS Config nor Resource Explorer lists, plus the types in scan.cloudcontrol_types. Runs everywhere. |
The layers are in precedence order: when two report the same resource, the earlier one's attributes win. --layers takes layer names, native for every native layer and auto (the default) for every layer the capability probe allows.