2021-01-14 17:11:02 +00:00
|
|
|
package aws
|
|
|
|
|
2021-08-09 15:15:35 +00:00
|
|
|
import "github.com/cloudskiff/driftctl/pkg/resource"
|
|
|
|
|
2021-01-14 17:11:02 +00:00
|
|
|
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
|
|
|
}
|