oci_identity_identity_provider

This resource provides the Identity Provider resource in Oracle Cloud Infrastructure Identity service.

Deprecated. For more information, see Deprecated IAM Service APIs.

Creates a new identity provider in your tenancy. For more information, see Identity Providers and Federation.

You must specify your tenancy’s OCID as the compartment ID in the request object. Remember that the tenancy is simply the root compartment. For information about OCIDs, see Resource Identifiers.

You must also specify a name for the IdentityProvider, which must be unique across all IdentityProvider objects in your tenancy and cannot be changed.

You must also specify a description for the IdentityProvider (although it can be an empty string). It does not have to be unique, and you can change it anytime with UpdateIdentityProvider.

Example Usage

resource "oci_identity_identity_provider" "test_identity_provider" {
	#Required
	compartment_id = var.tenancy_ocid
	description = var.identity_provider_description
	metadata = var.identity_provider_metadata
	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 = {"Department"= "Finance"}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Identity Provider * update - (Defaults to 20 minutes), when updating the Identity Provider * delete - (Defaults to 20 minutes), when destroying the Identity Provider

Import

IdentityProviders can be imported using the id, e.g.

$ terraform import oci_identity_identity_provider.test_identity_provider "id"