Skip to content

[BUG] Spot instance type recommendation not available on recommended region #313

@adrianriobo

Description

@adrianriobo

There is some checks missing when looking for best spot price / type machine:

We can see:

�[37mDEBU�[0m Based on avg prices for instance types [m4.large m5.large m5a.large m5ad.large m5d.large m5dn.large m5n.large m5zn.large m6a.large m6i.large m6id.large m6idn.large m6in.large m7a.large m7i-flex.large] is az eu-west-2b, current avg price is 0.05 and max price is 0.05 with a score of 9 
�[36mINFO�[0m @ updating.............                      
�[36mINFO�[0m  +  rh:qe:aws:bso main-bso-bso creating (0s)  
�[36mINFO�[0m  +  rh:qe:aws:bso main-bso-bso created       
�[36mINFO�[0m  +  pulumi:pulumi:Stack debug-fedora-spotOption-debug-fedora created (10s)  
�[36mINFO�[0m Outputs:                                     
�[36mINFO�[0m     avg   : 0.0452                           
�[36mINFO�[0m     az    : "eu-west-2b"                     
�[36mINFO�[0m     max   : 0.0452                           
�[36mINFO�[0m     region: "eu-west-2"                      
�[36mINFO�[0m     score : 9                                

But when we try to use the recommended machine type we got:

Diagnostics:
  aws:ec2:Eip (eip-publicmain-afd-net):
    warning: urn:pulumi:stackFedoraBaremetal-debug-fedora::debug-fedora::aws:ec2/eip:Eip::eip-publicmain-afd-net verification warning: use domain attribute instead

  pulumi:pulumi:Stack (debug-fedora-stackFedoraBaremetal-debug-fedora):
    error: update failed

  aws:autoscaling:Group (main-afd-asg):
    error: 1 error occurred:
    	* creating Auto Scaling Group (main-afd-asg-89ce230): operation error Auto Scaling: CreateAutoScalingGroup, https response error StatusCode: 400, RequestID: 0175d099-0523-431f-9dee-a39975af885d, api error ValidationError: The specified instance type m5zn.large is not valid

Resources:
    + 20 created

Duration: 2m45s

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions