| layout | aws |
|---|---|
| page_title | AWS: aws_iam_saml_provider |
| sidebar_current | docs-aws-resource-iam-saml-provider |
| description | Provides an IAM SAML provider. |
Provides an IAM SAML provider.
resource "aws_iam_saml_provider" "default" {
name = "myprovider"
saml_metadata_document = "${file("saml-metadata.xml")}"
}The following arguments are supported:
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.
The following attributes are exported:
arn- The ARN assigned by AWS for this provider.valid_until- The expiration date and time for the SAML provider in RFC1123 format, e.g.Mon, 02 Jan 2006 15:04:05 MST.
IAM SAML Providers can be imported using the arn, e.g.
$ terraform import aws_iam_saml_provider.default arn:aws:iam::123456789012:saml-provider/SAMLADFS