Skip to content

Commit

Permalink
update module message
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Dec 11, 2023
1 parent 3ef66a0 commit 59932e9
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/coverage/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 11 additions & 0 deletions src/mapping/aws/resource/aws_cloudfront_function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
11 changes: 11 additions & 0 deletions src/mapping/aws/resource/aws_cognito_identity_pool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"apply": [],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
2 changes: 1 addition & 1 deletion src/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions terraform/aws/aws_cloudfront_function.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_cloudfront_function" "pike" {}
1 change: 1 addition & 0 deletions terraform/aws/aws_cognito_identity_pool.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resource "aws_cognito_identity_pool" "pike" {}

0 comments on commit 59932e9

Please sign in to comment.