Feature Request: Allow data source aws_ec2_spot_price to return empty results #17446
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
Community Note
Description
Some Availability Zones do not have a spot price for some reason
The API says there are no prices available
"Error: no EC2 Spot Price History found matching criteria; try different search"
The AWS Managed Console shows a similar picture
If we send a request without specifying AZ and there is no price in at least one AZ, the same error will occur.
The AWS documentation says this parameter is optional. Probably a bug in the terraform provider.
New or Affected Resource(s)
Potential Terraform Configuration
References
aws ec2 describe-spot-price-history
Relates:
The text was updated successfully, but these errors were encountered: