As part of our commitment to always simplify, Availability Zones (AZs) are now automatically detected in Spotinst’s API. You can now completely omit AZs in your Spotinst API calls using a new attributesubnetIds, which will extract the AZs on your behalf based on the region and subnet ID parameters.
Terraform
subnet_ids = [
"subnet-4c1d1538",
"subnet-2791bb61",
"subnet-703a6f58"
]
JSON
{
"group": {
"compute": {
"subnetIds": [
"subnet-4c1d1538",
"subnet-2791bb61"
],
...
...
}
The new attribute is available for Terraform configurations or Restful APIs / CloudFormation templates.
For backward compatibility, the previous parametercompute.availabilityZones.name will continue to be supported but will now be optional.
You can check out the full documentation for our Elastigroup API here.