Deploy Arm Instances on Oracle Cloud Infrastructure using Terraform

Who is this for?

This is an introductory topic for software developers who are new to deploying Arm instances on Oracle Cloud Infrastructure (OCI) using Terraform.

What will you learn?

Upon completion of this Learning Path, you will be able to:

  • Automate Arm virtual machine (VM) creation on OCI using Terraform

Prerequisites

Before starting, you will need the following:

Summary

AI-assisted

This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
You’ll use Terraform to automate the creation of an Arm VM on OCI Ampere Compute. First, you’ll prepare a Linux control environment, then define the OCI resources as code and run the Terraform workflow to provision the instance. You can use the resulting configuration as a repeatable foundation for additional Arm infrastructure on OCI.

Frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
Which computer can I use to run Terraform?
You can use any computer with the required tools installed, including a desktop, laptop, or a virtual machine. The command format assumes that you’re working on a Linux machine.
What are the OCI API keys and SSH keys used for?
The OCI API key pair is used to authenticate Terraform’s requests to OCI. The SSH key pair is used to connect to the provisioned instance. Set private_key_path for the API private key and ssh_authorized_keys_path and ssh_private_key_path for your SSH keys.
How can I test OCI authentication before creating the VM?
Create availability-domains.tf with the provided data source and output definition, then run terraform plan. If authentication succeeds, you’ll see the availability domains in your tenancy. Keep this file in the same directory as provider.tf.
How can I display the provisioned instance's public IP address?
Create outputs.tf with the provided public_ip output definition, which reads oci_core_instance.Ampere.public_ip. After provisioning the instance, run terraform refresh to display its public IP address.
What result should I expect after I complete the workflow?
You’ll finish with an OCI Arm instance provisioned from your Terraform configuration.
Next