The entirety of this workshop can be run on a single OCI Compute Instance powered by Ampere®. The Compute instance will run inside of a Virtual Cloud Network (VCN) in a public subnet. You still start by creating your VCN with requisite security posture, then proceed to launch the compute instance.
-
Log into your OCI Cloud Tenancy and navigate to .
-
Click [Start VCN Wizard] - because we all get to be wizards every once in awhile!
-
Select the option to Create VCN with Internet Connectivity and click [Start VCN Wizard] button.
-
Provide a name for your VCN - might we suggest "PiDay2023?" You can leave all other settings (including VCN CIDR) as default. The wizard will create both public and private subnets, an Internet Gateway(IG), a NAT Gateway, and a Service Gateway (SG). though we will not utilize the NAT gateway and the Service Gateway, there is zero cost for these items
-
Click [Next], then click [Create]. Wait a few seconds for the process to complete, then click [View VCN].
-
Just one more change to make - click on [Subnets] and then click the Public Subnet. Note that it is utilizing the Security List aptly named: "Default Security List for "
-
Click the security list name and you should find 3 existing ingress rules: one for TCP port 22 (SSH) and 2 others for ICMP. Click [Add Ingress Rules]
-
Input "0.0.0.0/0" for Source CIDR and "80" for Destination Port Range. You may also include a comment indicating this is for ingress HTTP traffic.
-
Click [Add Ingress Rule] and you're all set. Time to launch a compute instance!
We will create the instance in the “root” compartment. In the “Image and shape” section, we are going to edit the defaults, and under “Shape”, we will change the shape to choose the Ampere type, with 4 OCPUs and 12 GB of RAM – this will max out your “Always Free” quota.
-
From the menu, select Compute -> Instances, and click [Create Instance]
-
Feel free to change the instance name to something more meaningful (i.e. PiDay2023-Server)
-
Under Image and shape make sure to select the Ampere family:
-
Make sure to size the instance properly:
-
In the Networking Section, make sure the VCN just createdis selected, along with the corresponding public subnet.
-
In the *Add SSH Keys section, you can generate a key pair (make sure to download the private and public key before you continue) or Upload / Paste and existing key pair.
-
Click [Create] and give it a minute.
-
Locate the public IP address of the instance once it has finished booting:
-
Log into the instance via SSH using your favorite SSH tool.
ssh -i ~/.ssh/id_rsa opc@<public-ip>note: You might need to wait a minute or two after launching the instance before you can initiate the SSH connection.
note: If you are using Putty for SSH connectivity, you will need to convert the private key to a .PPK - detailed steps here
You're all set! Now head back to the main instructions to complete the workshop.





