Skip to content

cloudformation OpenSearch Serverless

0

I want to use cloudformation to create OpenSearch Serverless. Can I configure the deployment type of the collection in the resources

1 Answer
0

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

EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.