Skip to content

Commit

Permalink
Merge pull request #110 from haarchri/bugfix/asg-az
Browse files Browse the repository at this point in the history
fix(asg): fix observed failed availability_zones / vpc_zone_identifier
  • Loading branch information
ulucinar authored Nov 14, 2022
2 parents 3a4d4bb + 22ba56a commit 18593b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/autoscaling/v1beta1/zz_generated_terraformed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions config/autoscaling/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down

0 comments on commit 18593b3

Please sign in to comment.