Resolving Oracle Cloud “Out of Capacity” issue and getting free VPS with 4 ARM cores / 24GB of memory (using PHP)

Alexander Hitrov
7 min readJul 18, 2021

Very neat and useful configuration was recently announced at Oracle Cloud Infrastructure (OCI) blog as a part of Always Free tier. Unfortunately, as of July 2021, it’s very complicated to launch an instance due to the “Out of Capacity” error. Here we’re solving that issue as Oracle constantly adds capacity from time to time.

Each tenancy gets the first 3,000 OCPU hours and 18,000 GB hours per month for free to create Ampere A1 Compute instances using the VM.Standard.A1.Flex shape (equivalent to 4 OCPUs and 24 GB of memory).

This approach requires PHP 7.4 | 8.0 | 8.1 and composer installed and will call “LaunchInstance” OCI API endpoint. We’ll utilise the package which I’ve written (and published) some time ago, here’s the article.

YouTube video instruction is a bit outdated regarding Configuration but still can be useful for the rest.

If you prefer using OCI CLI instead, please refer to

Generating API key

Please refer to my another article because despite the tool used (CLI or PHP) we need to have API key first.


Clone this repository :

git clone


cd oci-arm-host-capacity/
composer install


Create/copy .env file

Copy .env.example as .env

cp .env.example .env

You must modify .env file only. Don't push/share it as it possibly contains sensitive information.

All parameters except OCI_AVAILABILITY_DOMAIN are mandatory to be set. Please read the comments in .env file as well.


Region, user, tenancy, fingerprint should be taken from textarea during API key generation step (refer to the beginning of this article)…