Skip to content

Commit

Permalink
chore: Hydrate Instance Type Data for docs-gen (aws#6067)
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam authored Apr 21, 2024
1 parent f724f6e commit ff2515a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/docs/instancetypes_gen_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ func main() {
cp := awscloudprovider.New(op.InstanceTypesProvider, op.InstanceProvider,
op.EventRecorder, op.GetClient(), op.AMIProvider, op.SecurityGroupProvider, op.SubnetProvider)

if err := op.InstanceTypesProvider.UpdateInstanceTypes(ctx); err != nil {
log.Fatalf("updating instance types, %s", err)
}
if err := op.InstanceTypesProvider.UpdateInstanceTypeOfferings(ctx); err != nil {
log.Fatalf("updating instance types offerings, %s", err)
}
instanceTypes, err := cp.GetInstanceTypes(ctx, nil)
if err != nil {
log.Fatalf("listing instance types, %s", err)
Expand Down

0 comments on commit ff2515a

Please sign in to comment.