Resource: aws_iam_saml_provider

Provides an IAM SAML provider.

Example Usage

resource "aws_iam_saml_provider" "default" {
  name                   = "myprovider"
  saml_metadata_document = file("saml-metadata.xml")
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import IAM SAML Providers using the arn. For example:

import {
  to = aws_iam_saml_provider.default
  id = "arn:aws:iam::123456789012:saml-provider/SAMLADFS"
}

Using terraform import, import IAM SAML Providers using the arn. For example:

% terraform import aws_iam_saml_provider.default arn:aws:iam::123456789012:saml-provider/SAMLADFS