git clone https://github.com/oracle-terraform-modules/terraform-oci-vcn.git tfvcn
cd tfvcn
cp terraform.tfvars.example terraform.tfvars
Create a provider.tf file and add the following:
provider "oci" {
fingerprint = var.api_fingerprint
private_key_path = var.api_private_key_path
region = var.region
tenancy_ocid = var.tenancy_id
user_ocid = var.user_id
}
# provider identity parameters
variable "api_fingerprint" {
description = "fingerprint of oci api private key"
type = string
}
variable "api_private_key_path" {
description = "path to oci api private key used"
type = string
}
variable "tenancy_id" {
description = "tenancy id where to create the sources"
type = string
}
variable "user_id" {
description = "id of user that terraform will use to create the resources"
type = string
}
Set mandatory provider parameters in terraform.tfvars: