Skip to content

About

Simple Powershell Script that automatically tries to create a arm vps in oracle cloud using OCI. Resulting in a work-around for "out of capacity"

Topics

Resources

Stars

102 stars

Watchers

2 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Oracle-Free-Arm-VPS-PS

Simple Powershell Script that automatically tries to create a arm vps in oracle cloud using OCI. Resulting in a work-around for "out of capacity"

Resolving Oracle Cloud "Out of Capacity" issue and getting free VPS with 4 ARM cores / 24GB of memory

Requirements. OCI CLI.

follow instructions to install oracle cloud cli

Install: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm#InstallingCLI__windows

Using Docker

First, build the docker image and run it using --platform linux/amd64 due to oci-cli being amd64 only.

docker build --platform linux/amd64 -t oci:ps .

usage

in powershell prompt login to oracle cloud using this cli command:

oci session authenticate

then open/edit script, add tenancy id. follow instructions in script.

run script to easily get other parameters. read script for instructions.

disable setup mode.

then run script.

enjoy!

linux usage

to install powershell and run script on linux:

apt install powershell
chmod +x create_oracle_arm_instance.ps1
./create_oracle_arm_instance.ps1

docker usage

docker run -it -p 8181:8181 -v $(pwd):/root -w /root --platform linux/amd64 oci:ps pwsh create_oracle_arm_instance.ps1

session expiry!

oci sessions expire every 24 hours, you must re-run:

oci session authenticate

from docker:

docker run -it -p 8181:8181 -v $(pwd):/root -w /root --platform linux/amd64 oci:ps oci session authenticate

then visit the URL provided in the output to log in, and it will redirect to http://localhost:8181.

About

Simple Powershell Script that automatically tries to create a arm vps in oracle cloud using OCI. Resulting in a work-around for "out of capacity"

Topics

Resources

Stars

102 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages