Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.79 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.79 KB

oracle-infra

Repository for tracking our Oracle Cloud infrastructure resources as code

Do note that we only use infrastructure available in Oracle's Always Free Resources until we have sufficient funding.

Many thanks to Robin Lieb's repository and the Oracle A1 example repository for helping make things faster and easier.

Note that the Chuncheon region currently lacks compute capacity. We can use the following command to check capacity, assuming oci and jq are installed.

oci compute compute-capacity-report create --compartment-id ocid1.compartment.oc1..aaaaaaaad3euiylbm5te2snpodedi32xcljemiwsdu5roteybon4ec4rksxq --availability-domain QNmd:AP-CHUNCHEON-1-AD-1 --shape-availabilities file://./shape-availabilities.json | jq '.data."shape-availabilities"[0]."availability-status"'

If the output is OUT_OF_HOST_CAPACITY, there is no physical compute capacity yet. Try another time.

Setup

Note that you must set up a Customer Secret Key in Oracle Cloud before Terraform requests will work. We use an S3-compatible backend to store the Terraform state, and it requires you to set the secret key. You can find instructions on how to configure your key in Oracle's documentation. We assume that you configure a profile named oracle-default in your local credentials.

You will also need to configure your OCI configurations, per Oracle's API Key Authentication docs.

terraform init