driftctl/pkg/resource/aws/aws_default_route_table.go

15 lines
556 B
Go
Raw Normal View History

package aws
2021-08-09 15:15:35 +00:00
import "github.com/cloudskiff/driftctl/pkg/resource"
const AwsDefaultRouteTableResourceType = "aws_default_route_table"
2021-08-09 15:15:35 +00:00
func initAwsDefaultRouteTableMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetResolveReadAttributesFunc(AwsDefaultRouteTableResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"vpc_id": *res.Attributes().GetString("vpc_id"),
}
})
2021-09-17 15:16:06 +00:00
resourceSchemaRepository.SetFlags(AwsDefaultRouteTableResourceType, resource.FlagDeepMode)
2021-08-09 15:15:35 +00:00
}