driftctl/pkg/resource/aws/aws_ecr_repository.go

14 lines
479 B
Go
Raw Normal View History

2021-02-26 19:59:46 +00:00
package aws
2021-05-21 14:09:45 +00:00
import "github.com/cloudskiff/driftctl/pkg/resource"
2021-03-25 11:13:52 +00:00
2021-02-26 19:59:46 +00:00
const AwsEcrRepositoryResourceType = "aws_ecr_repository"
2021-05-07 09:01:38 +00:00
func initAwsEcrRepositoryMetaData(resourceSchemaRepository resource.SchemaRepositoryInterface) {
2021-08-09 14:03:04 +00:00
resourceSchemaRepository.SetNormalizeFunc(AwsEcrRepositoryResourceType, func(res *resource.Resource) {
val := res.Attrs
2021-05-07 09:01:38 +00:00
val.SafeDelete([]string{"timeouts"})
})
2021-09-17 15:16:06 +00:00
resourceSchemaRepository.SetFlags(AwsEcrRepositoryResourceType, resource.FlagDeepMode)
2021-05-07 09:01:38 +00:00
}