Skip to content

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 typeCloudFormation typeListed byMatch keysNotes
aws_acm_certificateAWS::ACM::Certificateconfig, resource-exploreridentity, arn, id
aws_albAWS::ElasticLoadBalancingV2::LoadBalancerconfig, resource-exploreridentity, arn, id
aws_alb_listenerAWS::ElasticLoadBalancingV2::Listenerconfig, resource-exploreridentity, arn, id
aws_alb_target_groupAWS::ElasticLoadBalancingV2::TargetGroupconfig, resource-exploreridentity, arn, id
aws_api_gateway_base_path_mappingAWS::ApiGateway::BasePathMappingarn, idnot listed: AWS Config doesn't record base path mappings and Resource Explorer doesn't index them
aws_api_gateway_deploymentAWS::ApiGateway::Deploymentresource-exploreridentity, arn, id
aws_api_gateway_domain_nameAWS::ApiGateway::DomainNamearn, idnot listed: AWS Config doesn't record REST API domain names and Resource Explorer doesn't index them
aws_api_gateway_methodAWS::ApiGateway::Methodconfig, resource-exploreridentity, arn, id
aws_api_gateway_resourceAWS::ApiGateway::Resourceresource-exploreridentity, arn, idderived from AWS::ApiGateway::RestApi
aws_api_gateway_rest_apiAWS::ApiGateway::RestApiconfig, resource-exploreridentity, arn, id
aws_api_gateway_stageAWS::ApiGateway::Stageconfig, resource-explorerarn, id
aws_apprunner_auto_scaling_configuration_versionAWS::AppRunner::AutoScalingConfigurationresource-exploreridentity, arn, id
aws_athena_data_catalogAWS::Athena::DataCatalogconfig, resource-explorerarn, id
aws_athena_workgroupAWS::Athena::WorkGroupconfig, resource-explorerarn, id
aws_backup_planAWS::Backup::BackupPlanconfig, resource-exploreridentity, arn, id
aws_backup_selectionAWS::Backup::BackupSelectionconfigidentity, id
aws_backup_vaultAWS::Backup::BackupVaultconfig, resource-exploreridentity, arn, id
aws_cloudformation_stackAWS::CloudFormation::Stackconfig, resource-explorerarn, id
aws_cloudwatch_dashboardAWS::CloudWatch::Dashboardresource-exploreridentity, arn, id
aws_cloudwatch_event_busAWS::Events::EventBusconfig, resource-exploreridentity, arn, id
aws_cloudwatch_event_ruleAWS::Events::Ruleconfig, resource-exploreridentity, arn, id
aws_cloudwatch_log_groupAWS::Logs::LogGroupresource-exploreridentity, arn, id
aws_cloudwatch_metric_alarmAWS::CloudWatch::Alarmconfig, resource-exploreridentity, arn, id
aws_codebuild_projectAWS::CodeBuild::Projectconfig, resource-exploreridentity, arn, id
aws_codepipelineAWS::CodePipeline::Pipelineconfig, resource-exploreridentity, arn, id
aws_customer_gatewayAWS::EC2::CustomerGatewayconfig, resource-explorerarn, id
aws_db_instanceAWS::RDS::DBInstanceconfig, resource-exploreridentity, arn, id
aws_db_option_groupAWS::RDS::OptionGroupconfig, resource-explorerarn, id
aws_db_parameter_groupAWS::RDS::DBParameterGroupresource-exploreridentity, arn, id
aws_db_subnet_groupAWS::RDS::DBSubnetGroupconfig, resource-exploreridentity, arn, id
aws_default_network_aclAWS::EC2::NetworkAclconfig, resource-explorerarn, id
aws_default_route_tableAWS::EC2::RouteTableconfig, resource-explorer, native:ec2-nat-gatewaysarn, id
aws_default_security_groupAWS::EC2::SecurityGroupconfig, resource-exploreridentity, arn, id
aws_default_vpc_dhcp_optionsAWS::EC2::DHCPOptionsconfig, resource-explorerarn, id
aws_dynamodb_tableAWS::DynamoDB::Tableconfig, resource-exploreridentity, arn, id
aws_ebs_volumeAWS::EC2::Volumeconfig, resource-exploreridentity, arn, id
aws_ec2_client_vpn_endpointAWS::EC2::ClientVpnEndpointconfig, resource-explorerarn, id
aws_ec2_managed_prefix_listAWS::EC2::PrefixListconfig, resource-explorerarn, id
aws_ecr_repositoryAWS::ECR::Repositoryconfig, resource-exploreridentity, arn, id
aws_efs_access_pointAWS::EFS::AccessPointconfig, resource-exploreridentity, arn, id
aws_efs_file_systemAWS::EFS::FileSystemconfig, resource-exploreridentity, arn, id
aws_efs_mount_targetAWS::EFS::MountTargetidentity, idnot 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_eipAWS::EC2::EIPconfig, resource-exploreridentity, arn, id
aws_eip_associationAWS::EC2::EIPAssociationconfigid
aws_eks_access_entryAWS::EKS::AccessEntryidentity, arnnot listed: AWS Config doesn't record access entries and Resource Explorer doesn't index them
aws_eks_addonAWS::EKS::Addonconfig, resource-exploreridentity, arn, id
aws_eks_clusterAWS::EKS::Clusterconfig, resource-exploreridentity, arn, id
aws_eks_node_groupAWS::EKS::Nodegroupidentity, arn, idnot 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_associationAWS::EKS::PodIdentityAssociationresource-explorer, native:eks-pod-identityidentity, arn, id
aws_elasticache_replication_groupAWS::ElastiCache::ReplicationGroupresource-explorerarn, id
aws_elasticache_userAWS::ElastiCache::Userresource-explorerarn, id
aws_elasticache_user_groupAWS::ElastiCache::UserGroupresource-explorerarn, id
aws_flow_logAWS::EC2::FlowLogconfig, resource-exploreridentity, arn, id
aws_glue_catalog_databaseAWS::Glue::Databaseconfig, resource-explorerarn, id
aws_glue_catalog_tableAWS::Glue::Tableresource-exploreridentity, arn, id
aws_iam_groupAWS::IAM::Groupconfig, resource-explorer, native:iam-attachmentsidentity, arn, id
aws_iam_group_policyAWS::IAM::GroupPolicynative:iam-attachmentsid
aws_iam_group_policy_attachmentNative::IAM::GroupPolicyAttachmentnative:iam-attachmentsidentity
aws_iam_instance_profileAWS::IAM::InstanceProfileconfig, resource-exploreridentity, arn, id
aws_iam_openid_connect_providerAWS::IAM::OIDCProviderconfig, resource-exploreridentity, arn, id
aws_iam_policyAWS::IAM::ManagedPolicyconfig, resource-explorer, native:iam-attachmentsidentity, arn, id
aws_iam_policy_attachmentNative::IAM::RolePolicyAttachmentNative::IAM::UserPolicyAttachmentNative::IAM::GroupPolicyAttachmentnative:iam-attachmentsidentity, rule tuple
aws_iam_roleAWS::IAM::Roleconfig, resource-explorer, native:iam-attachmentsidentity, arn, id
aws_iam_role_policyAWS::IAM::RolePolicynative:iam-attachmentsidentity, id
aws_iam_role_policy_attachmentNative::IAM::RolePolicyAttachmentnative:iam-attachmentsidentity, id
aws_iam_userAWS::IAM::Userconfig, resource-explorer, native:iam-attachmentsidentity, arn, id
aws_iam_user_policyAWS::IAM::UserPolicynative:iam-attachmentsidentity, id
aws_iam_user_policy_attachmentNative::IAM::UserPolicyAttachmentnative:iam-attachmentsidentity, id
aws_instanceAWS::EC2::Instanceconfig, resource-exploreridentity, arn, id
aws_internet_gatewayAWS::EC2::InternetGatewayconfig, resource-exploreridentity, arn, id
aws_kinesisanalyticsv2_applicationAWS::KinesisAnalyticsV2::Applicationconfig, resource-explorerarn, id
aws_kms_aliasAWS::KMS::Aliasconfigidentity, arn, id
aws_kms_keyAWS::KMS::Keyconfig, resource-exploreridentity, arn, id
aws_lambda_event_source_mappingAWS::Lambda::EventSourceMappingresource-exploreridentity, arn, id
aws_lambda_functionAWS::Lambda::Functionconfig, resource-exploreridentity, arn, id
aws_lambda_layer_versionAWS::Lambda::LayerVersionresource-exploreridentity, arn, id
aws_launch_templateAWS::EC2::LaunchTemplateconfig, resource-exploreridentity, arn, id
aws_lbAWS::ElasticLoadBalancingV2::LoadBalancerconfig, resource-exploreridentity, arn, id
aws_lb_listenerAWS::ElasticLoadBalancingV2::Listenerconfig, resource-exploreridentity, arn, id
aws_lb_listener_ruleAWS::ElasticLoadBalancingV2::ListenerRuleresource-exploreridentity, arn, id
aws_lb_target_groupAWS::ElasticLoadBalancingV2::TargetGroupconfig, resource-exploreridentity, arn, id
aws_memorydb_aclAWS::MemoryDB::ACLresource-explorerarn, id
aws_memorydb_parameter_groupAWS::MemoryDB::ParameterGroupresource-explorerarn, id
aws_memorydb_userAWS::MemoryDB::Userresource-explorerarn, id
aws_msk_clusterAWS::MSK::Clusterconfig, resource-exploreridentity, arn, id
aws_msk_configurationAWS::MSK::Configurationconfig, resource-explorerarn, id
aws_nat_gatewayAWS::EC2::NatGatewayconfig, resource-exploreridentity, arn, id
aws_network_aclAWS::EC2::NetworkAclconfig, resource-exploreridentity, arn, id
aws_network_acl_associationAWS::EC2::SubnetNetworkAclAssociationidnot listed: AWS Config records the association inside the network ACL item, and Resource Explorer doesn't index it
aws_network_interfaceAWS::EC2::NetworkInterfaceconfig, resource-exploreridentity, arn, id
aws_opensearch_domainAWS::OpenSearchService::Domainconfig, resource-explorerarn, id
aws_pipes_pipeAWS::Pipes::Piperesource-explorerarn, id
aws_quicksight_data_sourceAWS::QuickSight::DataSourceconfig, resource-explorerarn, id
aws_quicksight_vpc_connectionAWS::QuickSight::VPCConnectionarn, idnot listed: AWS Config doesn't record QuickSight VPC connections and Resource Explorer doesn't index them
aws_rds_clusterAWS::RDS::DBClusterconfig, resource-exploreridentity, arn, id
aws_resourceexplorer2_indexAWS::ResourceExplorer2::Indexconfig, resource-exploreridentity, arn, id
aws_resourceexplorer2_viewAWS::ResourceExplorer2::Viewresource-exploreridentity, arn, id
aws_route53_recordAWS::Route53::RecordSetnative:route53-recordsidentity, idderived from AWS::Route53::HostedZone
aws_route53_resolver_ruleAWS::Route53Resolver::ResolverRuleconfig, resource-exploreridentity, arn, id
aws_route53_resolver_rule_associationAWS::Route53Resolver::ResolverRuleAssociationconfigidentity, id
aws_route53_zoneAWS::Route53::HostedZoneconfig, resource-exploreridentity, arn, id
aws_route_tableAWS::EC2::RouteTableconfig, resource-explorer, native:ec2-nat-gatewaysidentity, arn, id
aws_route_table_associationAWS::EC2::SubnetRouteTableAssociationconfigidentity, id
aws_s3_bucketAWS::S3::Bucketconfig, resource-exploreridentity, arn, id
aws_s3_bucket_lifecycle_configurationNative::S3::BucketLifecyclenative:s3-subresourcesidentity, id
aws_s3_bucket_policyAWS::S3::BucketPolicynative:s3-subresourcesidentity, id
aws_s3_bucket_public_access_blockNative::S3::BucketPublicAccessBlocknative:s3-subresourcesidentity, idderived from AWS::S3::Bucket
aws_s3_bucket_server_side_encryption_configurationNative::S3::BucketEncryptionnative:s3-subresourcesidentity, idderived from AWS::S3::Bucket
aws_s3_bucket_versioningNative::S3::BucketVersioningnative:s3-subresourcesidentity, idderived from AWS::S3::Bucket
aws_scheduler_schedule_groupAWS::Scheduler::ScheduleGroupresource-explorerarn, id
aws_secretsmanager_secretAWS::SecretsManager::Secretconfig, resource-exploreridentity, arn, id
aws_security_groupAWS::EC2::SecurityGroupconfig, resource-exploreridentity, arn, id
aws_security_group_ruleAWS::EC2::SecurityGroupIngressAWS::EC2::SecurityGroupEgressnative:ec2-sg-rulesrule tuple
aws_sns_topicAWS::SNS::Topicconfig, resource-exploreridentity, arn, id
aws_sqs_queueAWS::SQS::Queueconfig, resource-exploreridentity, arn, id
aws_ssm_associationAWS::SSM::Associationresource-exploreridentity, arn, id
aws_ssm_parameterAWS::SSM::Parameterresource-exploreridentity, arn, id
aws_subnetAWS::EC2::Subnetconfig, resource-exploreridentity, arn, id
aws_vpcAWS::EC2::VPCconfig, resource-exploreridentity, arn, id
aws_vpc_dhcp_optionsAWS::EC2::DHCPOptionsconfig, resource-explorerarn, id
aws_vpc_endpointAWS::EC2::VPCEndpointconfig, resource-exploreridentity, arn, id
aws_vpc_endpoint_serviceAWS::EC2::VPCEndpointServiceconfig, resource-explorerarn, id
aws_vpc_ipv4_cidr_block_associationAWS::EC2::VPCCidrBlockidnot listed: AWS Config records the CIDR inside the VPC item, and Resource Explorer doesn't index it
aws_vpc_peering_connectionAWS::EC2::VPCPeeringConnectionconfig, resource-explorerarn, id
aws_vpc_peering_connection_accepterAWS::EC2::VPCPeeringConnectionconfig, resource-explorerarn, id
aws_vpc_security_group_egress_ruleAWS::EC2::SecurityGroupEgressnative:ec2-sg-rulesidentity, id
aws_vpc_security_group_ingress_ruleAWS::EC2::SecurityGroupIngressnative:ec2-sg-rulesidentity, id
aws_vpclattice_resource_configurationAWS::VpcLattice::ResourceConfigurationcloudcontrolarn, idderived from AWS::VpcLattice::ResourceConfiguration
aws_vpclattice_resource_gatewayAWS::VpcLattice::ResourceGatewaycloudcontrolarn, id
aws_vpclattice_service_networkAWS::VpcLattice::ServiceNetworkresource-explorerarn, id
aws_vpclattice_service_network_resource_associationAWS::VpcLattice::ServiceNetworkResourceAssociationcloudcontrolarn, id
aws_vpclattice_service_network_vpc_associationAWS::VpcLattice::ServiceNetworkVpcAssociationcloudcontrolarn, id
aws_vpn_connectionAWS::EC2::VPNConnectionconfig, resource-explorerarn, id
aws_vpn_gatewayAWS::EC2::VPNGatewayconfig, resource-explorerarn, id
aws_xray_groupAWS::XRay::Groupidentity, arn, idnot listed: AWS Config doesn't record X-Ray groups and Resource Explorer doesn't index them
aws_xray_sampling_ruleAWS::XRay::SamplingRuleresource-exploreridentity, 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 ​

LayerRunsTypesLists
configeach region75AWS Config's recorded resources, through SelectResourceConfig (or the aggregator's SelectAggregateResourceConfig). Runs where a recorder is recording.
resource-explorer, reeach region94Resource Explorer's index, through ListResources on the default view. Runs where an index has a default view.
native:ec2-sg-ruleseach regionAWS::EC2::SecurityGroupEgress, AWS::EC2::SecurityGroupIngressSecurity group rules, through ec2:DescribeSecurityGroupRules. AWS Config reports them only inside the group.
native:ec2-nat-gatewayseach regionAWS::EC2::RouteTableThe route tables that regional NAT gateways create, through ec2:DescribeNatGateways.
native:iam-attachmentsonce per accountAWS::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::UserPolicyAttachmentManaged policy attachments and inline policies of roles, users and groups, through iam:GetAccountAuthorizationDetails.
native:route53-recordsonce per accountAWS::Route53::RecordSetRecord sets of every hosted zone, through route53:ListResourceRecordSets.
native:s3-subresourceseach regionNative::S3::BucketEncryption, Native::S3::BucketLifecycle, Native::S3::BucketPublicAccessBlock, Native::S3::BucketVersioning, AWS::S3::BucketPolicyBucket policy, versioning, lifecycle, encryption and public access block, which Terraform manages as resources of their own, through the S3 GetBucket* calls.
native:eks-pod-identityeach regionAWS::EKS::PodIdentityAssociationEKS Pod Identity associations of the clusters another layer found, through eks:ListPodIdentityAssociations.
cloudcontrol, cceach region4Cloud 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.