driftctl/pkg/resource/aws/aws_default_security_group.go

16 lines
499 B
Go
Raw Normal View History

2021-01-15 13:15:31 +00:00
package aws
2021-04-26 15:24:57 +00:00
import (
"github.com/snyk/driftctl/enumeration/resource"
"github.com/snyk/driftctl/enumeration/resource/aws"
2021-04-26 15:24:57 +00:00
)
2021-03-25 11:13:52 +00:00
2021-04-26 15:24:57 +00:00
func initAwsDefaultSecurityGroupMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(aws.AwsDefaultSecurityGroupResourceType, func(res *resource.Resource) {
val := res.Attrs
2021-04-26 15:24:57 +00:00
val.SafeDelete([]string{"revoke_rules_on_delete"})
val.SafeDelete([]string{"ingress"})
val.SafeDelete([]string{"egress"})
})
}