-
Introduction
-
Basic Topologies
- Lesson 1 – VCN, Subnet and Single Webserver
- Lesson 2 – Second Webserver in other Availability Domain (AD)
- Lesson 2a – Second Webserver in other Fault Domain (FD)
- Lesson 3 – Load Balancer
- Lesson 4 – Load Balancer + NAT Gateway + Bastion Host
- Lesson 4a – Load Balancer + NAT Gateway + Bastion Host (+ Network Security Groups)
- Lesson 5 – Shared Filesystem
- Lesson 5a – Shared Filesystem (+ Network Security Groups)
- Lesson 6 – Local Block Volume
- Lesson 7 – DBSystem
- Lesson 7a – DBSystem with DataGuard
-
Advanced Topologies
8 thoughts on “How to automate OCI with Terraform”
-
Need your help in setting up on my account this please advise
-
Please read this blog post: https://foggykitchen.com/2020/08/17/how-to-access-the-course-after-a-while/
-
-
Didn’t see anything that course has a time limit to complete. Not possible to complete this course in that time wouldn’t have signed up if that was case
-
This is LearnPress timer which will reach zero, but the course will be still available (lifetime access). I am working on disabling this feature which is misleading.
-
-
Does this course also covers the basics of terraform?
-
This course shows up how to build cloud architectures in Oracle Cloud Infrastructure (OCI) with the usage of Terraform. It means you can try to learn Terraform basics from this course, but it was not our goal to generally explain the basics of HCL language or Terraform as a tool/technology. Here is GitHub repo for this training: https://github.com/mlinxfeld/foggykitchen_tf_oci_course
-
-
Hello, I can not see the course, Its showing locked for me. Can you please suggest?
Thanks
Rashi-
Hi Rashi, in 2021 free access to the training has expired, but still, you can get it in the commercial sense.
-
Comments are closed.
I purchased the course but I am unable to read it’s locked
Please check the procedure described in this blog post: https://foggykitchen.com/2020/08/17/how-to-access-the-course-after-a-while/
Do you have the terraform scripts available for download as part of this course?
Yes of course 🙂 here is GitHub repo: https://github.com/mlinxfeld/foggykitchen_tf_oci_course
Amazing and very easy to follow
Hi Martin,
I’m having a problem applying terraform plan command.
This is the command output:
$ terraform plan
Refreshing Terraform state in-memory prior to plan…
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.oci_identity_availability_domains.ADs: Refreshing state…
data.oci_core_images.OSImageLocal: Refreshing state…
Error: Invalid index
on datasources.tf line 14, in data “oci_core_vnic_attachments” “FoggyKitchenWebserver1_VNIC1_attach”:
14: availability_domain = lookup(data.oci_identity_availability_domains.ADs.availability_domains[1], “name”)
|—————-
| data.oci_identity_availability_domains.ADs.availability_domains is list of object with 1 element
The given key does not identify an element in this collection value.
It seems like there is a problem with the list index number in the variable “availabilty_domain”. If I change de index value to cero the following happens:
Error: Invalid index
on webserver1.tf line 2, in resource “oci_core_instance” “FoggyKitchenWebserver1”:
2: availability_domain = lookup(data.oci_identity_availability_domains.ADs.availability_domains[1], “name”)
|—————-
| data.oci_identity_availability_domains.ADs.availability_domains is list of object with 1 element
The given key does not identify an element in this collection value.
Error: Invalid index
on webserver1.tf line 8, in resource “oci_core_instance” “FoggyKitchenWebserver1”:
8: source_id = lookup(data.oci_core_images.OSImageLocal.images[0], “id”)
|—————-
| data.oci_core_images.OSImageLocal.images is empty list of object
The given key does not identify an element in this collection value.
—————————————–
The terraform version I’m running is:
$ terraform -version
Terraform v0.12.16
+ provider.null v3.1.0
+ provider.oci v4.15.0
—————————————–
My environment variables setup is as follows:
TF_VAR_compartment_ocid=ocid1.tenancy.oc1..aaaaaaaapsjmvyv22s4tf4fnucgeq2vonwlrk3zsbvnu55m4vfildbxb72dq
TF_VAR_region=us-sanjose-1
TF_VAR_private_key_oci=path to key
TF_VAR_private_key_path=path to key
TF_VAR_region1=us-ashburn-1
TF_VAR_region2=us-phoenix-1
TF_VAR_tenancy_ocid=ocid1.tenancy.oc1..aaaaaaaapsjmvyv22s4tf4fnucgeq2vonwlrk3zsbvnu55m4vfildbxb72dq
TF_VAR_user_ocid=ocid1.user.oc1..aaaaaaaacmv26erdkcagbiyctniyecvvtbpuxiy56hanaksxiez7myedjikq
TF_VAR_public_key_oci=path to key
TF_VAR_fingerprint=c9:69:f5:6c:41:ad:af:69:f3:4d:71:96:29:e5:02:02
What lesson are you using? Looks like your region has only one availability domain. In case of instances maybe referenced image is not available. I need to know what exact lesson of the course you are testing…
Hi, thanks for your feedback. That could be the problem. I’m using San Jose (US) which has only one AD. I applied the terraform plan command on the Lesson 1 files. Thanks.