- Newest
- Most votes
- Most comments
Hi,
No, CloudFormation templates for OpenSearch Serverless collections don't directly configure a deployment type like "managed" or "serverless." OpenSearch Serverless itself is a serverless deployment option for OpenSearch that abstracts away cluster management.
However, within a CloudFormation template for OpenSearch Serverless, you define the collection and its characteristics, essentially creating a serverless deployment. Here's how you can achieve this using CloudFormation:
Resources:
Define resources like AWS::OpenSearchServerless::Collection to specify the collection name, options for search and ingest compute capacity (OCUs), and other configurations..
You can include additional resources like AWS::OpenSearchServerless::AccessPolicy and AWS::OpenSearchServerless::NetworkPolicy to control access and network settings for the collection. CloudFormation Reference:
Refer to the official documentation for a complete list of resources and properties you can use: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-cfn.html Sample Template:
The AWS documentation provides a sample CloudFormation template that creates a basic OpenSearch Serverless collection, access policy, network policy, and a security policy: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-cfn.html
Relevant content
- asked 2 years ago
