Issue 637: Fix false positive for aws_sns_topic/policy
parent
fcfdb054da
commit
2ddb8191ab
|
@ -19,6 +19,10 @@ func initSnsTopicMetaData(resourceSchemaRepository resource.SchemaRepositoryInte
|
|||
val.DeleteIfDefault("lambda_success_feedback_sample_rate")
|
||||
val.DeleteIfDefault("http_success_feedback_sample_rate")
|
||||
val.DeleteIfDefault("application_success_feedback_sample_rate")
|
||||
val.DeleteIfDefault("firehose_failure_feedback_role_arn")
|
||||
val.DeleteIfDefault("firehose_success_feedback_role_arn")
|
||||
val.SafeDelete([]string{"name_prefix"})
|
||||
val.SafeDelete([]string{"owner"})
|
||||
})
|
||||
resourceSchemaRepository.SetHumanReadableAttributesFunc(AwsSnsTopicResourceType, func(res *resource.AbstractResource) map[string]string {
|
||||
val := res.Attrs
|
||||
|
|
|
@ -16,6 +16,7 @@ func initSnsTopicPolicyMetaData(resourceSchemaRepository resource.SchemaReposito
|
|||
|
||||
resourceSchemaRepository.SetNormalizeFunc(AwsSnsTopicPolicyResourceType, func(res *resource.AbstractResource) {
|
||||
val := res.Attrs
|
||||
val.SafeDelete([]string{"owner"})
|
||||
jsonString, err := helpers.NormalizeJsonString((*val)["policy"])
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue