2020-12-09 15:31:34 +00:00
|
|
|
package aws
|
|
|
|
|
2021-04-29 15:17:55 +00:00
|
|
|
import (
|
|
|
|
"github.com/cloudskiff/driftctl/pkg/resource"
|
|
|
|
)
|
2021-03-25 11:13:52 +00:00
|
|
|
|
2020-12-09 15:31:34 +00:00
|
|
|
const AwsEbsVolumeResourceType = "aws_ebs_volume"
|
|
|
|
|
2021-04-29 15:17:55 +00:00
|
|
|
func initAwsEbsVolumeMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
2021-05-24 15:19:06 +00:00
|
|
|
resourceSchemaRepository.SetNormalizeFunc(AwsEbsVolumeResourceType, func(res *resource.AbstractResource) {
|
|
|
|
val := res.Attrs
|
2021-04-29 15:17:55 +00:00
|
|
|
val.SafeDelete([]string{"arn"})
|
|
|
|
val.SafeDelete([]string{"outpost_arn"})
|
|
|
|
val.SafeDelete([]string{"snapshot_id"})
|
|
|
|
})
|
|
|
|
}
|