add validation memory quantity for Flex shapes
kral2 opened this issue ยท 0 comments
kral2 commented
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
Description
Flex shapes requires a minimum ratio of 1:1 for cpu:ram, e.g you cannot have memory quantify smaller than ocpu count.
Instead of having the module user enter wrong values and get an API error that needs to be interpreted, we can detect this misconfiguration before hitting the API and return a meaningful message to the customer.
This can saved lot of provisioning time if instance module is part of a more larger configuration and is not provisioned first.
New or Affected Resource(s)
oci_core_instance
and the associated Input Variable: var.instance_flex_memory_in_gbs
Potential Terraform Configuration
No initial implementation mock-up yet.
# Copy-paste any Terraform configurations for how the requested feature may be used.
References
https://docs.oracle.com/en-us/iaas/Content/Compute/References/computeshapes.htm#flexible