A Terraform configuration for compute resources on the Free Tier of Oracle Cloud Infrastructure.
Deploys a minimal set of resources to run a compute instance on the OCI Free Tier.
For simplicity—to avoid the need to install and configure Terraform and the OCI CLI—this configuration is designed for deployment as a stack in the OCI Resource Manager.
- Download the repository as a ZIP file: on the repository’s GitHub page, select Download ZIP from the Code menu on the upper right.
- Log into the Oracle Cloud Infrastructure Console.
- Go to the Resource Manager: from the hamburger menu on the upper left, find Developer Services → Resource Manager and select Stacks.
- Click on the Create Stack button, select .zip file under Stack Configuration and select the file via the Browse link.
- Click on the Next button and provide an SSH public key.
- Click Next again and then Create.
- Click on the Plan button and start the plan job by clicking Plan again.
- After the plan job completes, from the Resource Manager » Stacks » Stack Details » Job Details page go to Resource Manager » Stacks » Stack Details.
- Click on the Apply button and start the apply job by clicking Apply again.
- After the apply job completes, from the hamburger menu find Compute → Compute and select Instances. Select the root compartment from the Compartment menu.
- Information for connecting to the instance with SSH can be found by selecting the instance (named OCI Free Compute Minimal by default) and viewing the details under Instance access on the Instance information tab.
- To destroy the resources, navigate back to Resource Manager » Stacks » Stack Details and click on the Destroy button and click Destroy again.
- To delete the stack, after the destroy job completes, from the Resource Manager » Stacks » Stack Details » Job Details page go to Resource Manager » Stacks » Stack Details. From the More Actions menu choose Delete Stack and then Delete.
The resources deployed include the following:
- One (1) Virtual Cloud Network
- One (1) Internet Gateway
- One (1) Subnet
- One (1) AMD Micro instance running the latest Oracle Linux distribution with the following specifications:
- 1 OCPU
- 1 GiB of memory
- 47 GiB of storage
- 1 public IP address