diff --git a/src/coverage/aws.md b/src/coverage/aws.md index 99789af2..2f25d9d4 100644 --- a/src/coverage/aws.md +++ b/src/coverage/aws.md @@ -83,7 +83,6 @@ Datasource percentage coverage 99.60 ./resource.ps1 aws_cleanrooms_configured_table ./resource.ps1 aws_cloud9_environment_membership ./resource.ps1 aws_cloudcontrolapi_resource -./resource.ps1 aws_cloudfront_function ./resource.ps1 aws_cloudfront_realtime_log_config ./resource.ps1 aws_cloudhsm_v2_cluster ./resource.ps1 aws_cloudhsm_v2_hsm @@ -101,7 +100,6 @@ Datasource percentage coverage 99.60 ./resource.ps1 aws_codestarconnections_connection ./resource.ps1 aws_codestarconnections_host ./resource.ps1 aws_codestarnotifications_notification_rule -./resource.ps1 aws_cognito_identity_pool ./resource.ps1 aws_cognito_identity_pool_provider_principal_tag ./resource.ps1 aws_cognito_identity_pool_roles_attachment ./resource.ps1 aws_cognito_managed_user_pool_client diff --git a/src/data.go b/src/data.go index be411418..7d7ca198 100644 --- a/src/data.go +++ b/src/data.go @@ -131,7 +131,7 @@ func GetLocalModules(block *hclsyntax.Block, dirName string) ([]ResourceV2, erro // now process these extras ExtraFiles, err := GetTF(modulePath) if err != nil { - log.Printf("getTF %s", err) + log.Info().Msgf("local module scan getTF, %s", err) } for _, file := range ExtraFiles { diff --git a/src/mapping/aws/resource/aws_cloudfront_function.json b/src/mapping/aws/resource/aws_cloudfront_function.json new file mode 100644 index 00000000..45e4fdaf --- /dev/null +++ b/src/mapping/aws/resource/aws_cloudfront_function.json @@ -0,0 +1,11 @@ +[ + { + "apply": [], + "attributes": { + "tags": [] + }, + "destroy": [], + "modify": [], + "plan": [] + } +] diff --git a/src/mapping/aws/resource/aws_cognito_identity_pool.json b/src/mapping/aws/resource/aws_cognito_identity_pool.json new file mode 100644 index 00000000..45e4fdaf --- /dev/null +++ b/src/mapping/aws/resource/aws_cognito_identity_pool.json @@ -0,0 +1,11 @@ +[ + { + "apply": [], + "attributes": { + "tags": [] + }, + "destroy": [], + "modify": [], + "plan": [] + } +] diff --git a/src/scan.go b/src/scan.go index d002babc..3695b079 100644 --- a/src/scan.go +++ b/src/scan.go @@ -224,7 +224,7 @@ func MakePolicy(dirName string, file *string, init bool, EnableResources bool) ( func GetTF(dirName string) ([]string, error) { files, err := GetTFFiles(dirName) if err != nil { - return nil, fmt.Errorf("folder %s can't be found", dirName) + return nil, fmt.Errorf("folder %s can't be found, may not be local path", dirName) } modulePath := dirName + "/.terraform/modules" diff --git a/terraform/aws/aws_cloudfront_function.tf b/terraform/aws/aws_cloudfront_function.tf new file mode 100644 index 00000000..c07d7114 --- /dev/null +++ b/terraform/aws/aws_cloudfront_function.tf @@ -0,0 +1 @@ +resource "aws_cloudfront_function" "pike" {} diff --git a/terraform/aws/aws_cognito_identity_pool.tf b/terraform/aws/aws_cognito_identity_pool.tf new file mode 100644 index 00000000..1868a27d --- /dev/null +++ b/terraform/aws/aws_cognito_identity_pool.tf @@ -0,0 +1 @@ +resource "aws_cognito_identity_pool" "pike" {}