driftctl/pkg/resource/aws/aws_key_pair.go

16 lines
428 B
Go
Raw Normal View History

package aws
2021-05-07 15:47:53 +00:00
import (
"github.com/cloudskiff/driftctl/pkg/resource"
)
2021-03-25 11:13:52 +00:00
const AwsKeyPairResourceType = "aws_key_pair"
2021-05-07 15:47:53 +00:00
func initAwsKeyPairMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetNormalizeFunc(AwsKeyPairResourceType, func(res *resource.AbstractResource) {
val := res.Attrs
2021-05-07 15:47:53 +00:00
val.SafeDelete([]string{"key_name_prefix"})
val.SafeDelete([]string{"public_key"})
})
}