driftctl/pkg/resource/aws/aws_key_pair.go

16 lines
428 B
Go

package aws
import (
"github.com/cloudskiff/driftctl/pkg/resource"
)
const AwsKeyPairResourceType = "aws_key_pair"
func initAwsKeyPairMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(AwsKeyPairResourceType, func(res *resource.AbstractResource) {
val := res.Attrs
val.SafeDelete([]string{"key_name_prefix"})
val.SafeDelete([]string{"public_key"})
})
}