The list of compute shapes is always built on availability domain 1 and may not be valid on other ADs
snafuz opened this issue · 0 comments
snafuz commented
The data source ad1 for compute shapes is always created on AD1. If the variable ad_number points to a different availability domain, the list may not contain the actual set of shapes available in the selected availability domain.
To have consistent behavior, the data source should be built on the actual var.ad_number
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version and Provider Version
Terraform v1.1.3
on linux_amd64
- provider registry.terraform.io/hashicorp/oci v4.58.0
Affected Resource(s)
data.oci_core_shapes.ad1
Expected Behavior
Should provide the list of shapes actually available on the selected availability domain (var.ad_number
)
Actual Behavior
Always return the list of available shapes for the availability domain 1
Steps to Reproduce
A common scenario to test this error is on Free Trials with a 3-ADs home region and Always Free eligible AD != 1.