oracle-terraform-modules/terraform-oci-iam

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

tutorialbyexample opened this issue · 1 comments

terraform -version
Terraform v0.12.19

  • provider.oci v3.59.0

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

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.