Provides an IAM SAML provider.
resource "aws_iam_saml_provider" "default" {
name = "myprovider"
saml_metadata_document = file("saml-metadata.xml")
}
This resource supports the following arguments:
name
- (Required) The name of the provider to create.saml_metadata_document
- (Required) An XML document generated by an identity provider that supports SAML 2.0.tags
- (Optional) Map of resource tags for the IAM SAML provider. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- The ARN assigned by AWS for this provider.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.valid_until
- The expiration date and time for the SAML provider in RFC1123 format, e.g., Mon, 02 Jan 2006 15:04:05 MST
.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