Problem
BigAnimal Cluster can't be created with error 'No enough quota to create <cluster name>' or 'pre-check for the quota limit failed'
BigAnimal CLI or API
❯ biganimal create-cluster --clusterConfigFile ~/Desktop/config_file.yaml
Are you sure you want to create cluster "cluster-name"? [y|n]: y
{"error":{"errors":[{"message":"pre-check for the quota limit failed"}],"message":"Precondition Failed","reference":"upmrid/fwm2sG4XjEra-faVbRMqy/xozuqwpRZd_Cg2NXugiwi","source":"mSvc","status":412}}
BigAnimal UI
Cause
The account/subscriptions has resources' quota limit. You can run biganimal-csp-preflight script to get more details.
How to run biganimal-csp-preflight script
Azure
Steps are documented here Method 1: Use EDB's shell script. Below is an example:
1. Go to Azure Cloud Shell
2. Command "az account show" and "az account list" could give us the subscription ID and subscription name.
Verify the subscription name is correct and get its subscription ID as the target subscription.
3. The below command can also execute the script. Here we try to share the other way to run the script.
curl -sL https://raw.githubusercontent.com/EnterpriseDB/cloud-utilities/main/azure/biganimal-csp-preflight | bash -s <target-subscription> <region> [options]
Run git clone https://github.com/EnterpriseDB/cloud-utilities.git/ to get the script.
4. Run command ./cloud-utilities/azure/biganimal-csp-preflight [options] <target subscription> <region>
For example:
If I am going to install a 3 nodes' PG cluster(--high-availability) in eastus2, PG instance type is E2s_v3( -i e2s_v3), private network(-e private), no existing DP(aks) cluster has been deployed before (-r). Then the command will be:
./cloud-utilities/azure/biganimal-csp-preflight -i e2s_v3 --high-availability -e private -r ac9903a5-xxxxx-a463f5e41079 eastus2
The output will be
AWS
Steps are documented here Check AWS account readiness for running BigAnimal
1. Go to AWS Cloud Shell
2. If you don't know your AWS account id, you can run the below command:
aws sts get-caller-identity --query "Account" --output text
3. The below command can also execute the script. Here we try to share the other way to run the script.
curl -sL https://raw.githubusercontent.com/EnterpriseDB/cloud-utilities/main/aws/biganimal-csp-preflight | bash -s <AWS-account-ID> <region> [options]
Run git clone https://github.com/EnterpriseDB/cloud-utilities.git/ to get the script.
4. Run command ./cloud-utilities/aws/biganimal-csp-preflight [options] <account-id> <region>
For example:
If I am going to install a 3 nodes' PG cluster(--high-availability) in us-east-1, PG instance type is r5.4xlarge( -i r5.4xlarge), private network(-e private), no existing DP(aks) cluster has been deployed before (-r). Then the command will be:
./cloud-utilities/aws/biganimal-csp-preflight -i r5.4xlarge --high-availability -e private -r 517xxxxxxx663 us-east-1
The output will be