From c780df3749c938d76830c708c7ccd890f7a881b4 Mon Sep 17 00:00:00 2001 From: Mateusz Urbanek Date: Thu, 22 Aug 2024 14:07:00 +0200 Subject: [PATCH] fix: variables in oci Signed-off-by: Mateusz Urbanek --- terraform/oci/main.tf | 3 --- terraform/oci/modules/a1_flex/versions.tf | 1 - terraform/oci/modules/core/core.tf | 8 -------- terraform/oci/modules/core/variables.tf | 15 --------------- terraform/oci/modules/core/versions.tf | 1 - 5 files changed, 28 deletions(-) diff --git a/terraform/oci/main.tf b/terraform/oci/main.tf index f415c2b..22ddd24 100644 --- a/terraform/oci/main.tf +++ b/terraform/oci/main.tf @@ -12,9 +12,6 @@ module "oci_core" { instance_name = "BdxPwD" tenancy_ocid = var.tenancy_ocid - user_ocid = var.user_ocid - fingerprint = var.fingerprint - private_key = var.private_key } module "oci_a1_flex" { diff --git a/terraform/oci/modules/a1_flex/versions.tf b/terraform/oci/modules/a1_flex/versions.tf index a785d8e..42c4a19 100644 --- a/terraform/oci/modules/a1_flex/versions.tf +++ b/terraform/oci/modules/a1_flex/versions.tf @@ -2,7 +2,6 @@ terraform { required_providers { oci = { source = "oracle/oci" - version = "6.7.0" } } } diff --git a/terraform/oci/modules/core/core.tf b/terraform/oci/modules/core/core.tf index 9fa129b..83e79a5 100644 --- a/terraform/oci/modules/core/core.tf +++ b/terraform/oci/modules/core/core.tf @@ -1,11 +1,3 @@ -provider "oci" { - tenancy_ocid = var.tenancy_ocid - user_ocid = var.user_ocid - fingerprint = var.fingerprint - private_key = var.private_key - region = var.region -} - data "oci_identity_availability_domain" "ad" { compartment_id = var.tenancy_ocid ad_number = var.availability_domain diff --git a/terraform/oci/modules/core/variables.tf b/terraform/oci/modules/core/variables.tf index 42a38d5..1fda4cc 100644 --- a/terraform/oci/modules/core/variables.tf +++ b/terraform/oci/modules/core/variables.tf @@ -3,21 +3,6 @@ variable "tenancy_ocid" { description = "Tenancy ocid where to create the sources." } -variable "user_ocid" { - type = string - description = "Ocid of user that terraform will use to create the resources." -} - -variable "fingerprint" { - type = string - description = "Fingerprint of OCI API Private Key." -} - -variable "private_key" { - type = string - description = "Contents of OCI API Private Key used." -} - variable "instance_name" { type = string description = "Name of the instance." diff --git a/terraform/oci/modules/core/versions.tf b/terraform/oci/modules/core/versions.tf index a785d8e..42c4a19 100644 --- a/terraform/oci/modules/core/versions.tf +++ b/terraform/oci/modules/core/versions.tf @@ -2,7 +2,6 @@ terraform { required_providers { oci = { source = "oracle/oci" - version = "6.7.0" } } }