Resource: aws_opensearchserverless_security_config

Terraform resource for managing an AWS OpenSearch Serverless Security Config.

Example Usage

Basic Usage

resource "aws_opensearchserverless_security_config" "example" {
  name = "example"
  type = "saml"
  saml_options {
    metadata = file("${path.module}/idp-metadata.xml")
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

saml_options

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 OpenSearchServerless Access Policy using the name argument prefixed with the string saml/account_id/. For example:

import {
  to = aws_opensearchserverless_security_config.example
  id = "saml/123456789012/example"
}

Using terraform import, import OpenSearchServerless Access Policy using the name argument prefixed with the string saml/account_id/. For example:

% terraform import aws_opensearchserverless_security_config.example saml/123456789012/example