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
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
Terraform Version and Provider Version
Terraform v1.1.3 on linux_amd64
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.