diff --git a/apis/autoscaling/v1beta1/zz_generated_terraformed.go b/apis/autoscaling/v1beta1/zz_generated_terraformed.go index cea7eac337..ec794204b2 100755 --- a/apis/autoscaling/v1beta1/zz_generated_terraformed.go +++ b/apis/autoscaling/v1beta1/zz_generated_terraformed.go @@ -151,6 +151,7 @@ func (tr *AutoscalingGroup) LateInitialize(attrs []byte) (bool, error) { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + opts = append(opts, resource.WithNameFilter("AvailabilityZones")) li := resource.NewGenericLateInitializer(opts...) return li.LateInitialize(&tr.Spec.ForProvider, params) diff --git a/config/autoscaling/config.go b/config/autoscaling/config.go index dcab6edc9e..368587909f 100644 --- a/config/autoscaling/config.go +++ b/config/autoscaling/config.go @@ -16,6 +16,12 @@ func Configure(p *config.Provider) { // These are mutually exclusive with aws_autoscaling_attachment. config.MoveToStatus(r.TerraformResource, "load_balancers", "target_group_arns") + r.LateInitializer = config.LateInitializer{ + IgnoredFields: []string{ + "availability_zones", + }, + } + r.References["vpc_zone_identifier"] = config.Reference{ Type: "github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet", }