Skip to content

Instantly share code, notes, and snippets.

@lucasjellema
Created December 2, 2021 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasjellema/2b430e55e8d5750175c8156254fddc4f to your computer and use it in GitHub Desktop.
Save lucasjellema/2b430e55e8d5750175c8156254fddc4f to your computer and use it in GitHub Desktop.
quick-terraform-oci-initialization
terraform {
required_version = ">= 0.14"
}
provider oci {
region = var.region
}
variable tenancy_ocid {default = "the ocid of your tenancy"}
variable region {default = "the region in which you want to query"}
variable compartment_ocid { default = "the compartment in which you want to query"}
data "oci_identity_tenancy" "tenant_details" {
tenancy_id = var.tenancy_ocid
}
output "query" {
value = data.oci_identity_tenancy.tenant_details
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment