driftctl/pkg/resource/aws/aws_security_group.go

19 lines
622 B
Go

package aws
import (
"github.com/snyk/driftctl/enumeration/resource"
"github.com/snyk/driftctl/enumeration/resource/aws"
)
func initAwsSecurityGroupMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(aws.AwsSecurityGroupResourceType, func(res *resource.Resource) {
val := res.Attrs
val.SafeDelete([]string{"revoke_rules_on_delete"})
val.SafeDelete([]string{"timeouts"})
// TODO We need to find a way to warn users that some rules in their states could be unmanaged
val.SafeDelete([]string{"ingress"})
val.SafeDelete([]string{"egress"})
})
}