Created
December 2, 2021 07:34
-
-
Save lucasjellema/2b430e55e8d5750175c8156254fddc4f to your computer and use it in GitHub Desktop.
quick-terraform-oci-initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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