add validation memory quantity for Flex shapes #62
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Community Note
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
The text was updated successfully, but these errors were encountered: