oracle-terraform-modules / terraform-oci-iam

Terraform Module for managing Oracle Cloud Infrastructure Identity and Access Management (IAM) resources
https://registry.terraform.io/modules/oracle-terraform-modules/iam/oci/latest
Other
12 stars 23 forks source link

IAM > IDCS > Terraform to IDCS integration with Metadata.xml file #15

Open tutorialbyexample opened 4 years ago

tutorialbyexample commented 4 years ago

terraform -version Terraform v0.12.19

resource "oci_identity_identity_provider" "identity_provider" {

Required

compartment_id = var.compartment_ocid
description    = var.identity_provider_description
#metadata       = var.identity_provider_metadata
metadata            = "${var.identity_provider_metadata != "" ? var.identity_provider_metadata : "${file("${var.identity_provider_metadata_file}")}"}"
metadata_url   = var.identity_provider_metadata_url
name           = var.identity_provider_name
product_type   = var.identity_provider_product_type
protocol       = var.identity_provider_protocol

#Optional
#defined_tags = {"Operations.CostCenter"= "42"}
freeform_attributes = var.identity_provider_freeform_attributes
freeform_tags = var.identity_provider_freeform_tags

}

Where identity_provider_metadata_file im adding metadata.xml file location what was download from https://idcs-XXXXXXXXXXX.identity.oraclecloud.com/fed/v1/metadata

and finally not working, anything need to do for this? or Yet this feature not available in terraform.

Where as once we are creating IDCS from console working file with URL, Client Id and Secret.

kral2 commented 3 years ago

Hello,

The module is currently not supporting IDCS integration. We would have to first investigate about such support on the Terraform provider, then see for a potential addition to the iam module.

I will keep this issue as future worl to investigate, but would also let you know that it is not the current priority for the module development.