Skip to main content

Amazon OpenSearch Managed

Prerequisites

  1. Required Installations
  1. Service Role Setup Run the following AWS CLI command to enable OpenSearch service role:
aws iam create-service-linked-role --aws-service-name opensearchservice.amazonaws.com

Create Stack

  • Access CloudFormation console via the installation link
  • Enter the OpenSearch module S3 URL (provided separately)

CloudFormation Opensearch Managed Create Stack

Stack Parameters

This template includes a set of parameters that allow you to customize the deployment of AWS resources. Each parameter provides flexibility to tailor the stack to your environment or operational needs.

Stack Name

Stack name must contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-) and start with a letter. Max 128 characters.

Format: formkiq-opensearch-<environment> Example: formkiq-opensearch-prod

CloudFormation Stack Parameters

Configuration Parameters

ParameterTypeDefaultDescription
VpcStackNameString(none)Name of the VPC CloudFormation stack used to import VPC ID, subnets, and CIDR blocks.
NameStringformkiq-prodUnique, lowercase name for the OpenSearch domain. Must include only lowercase letters, numbers, and hyphens.
EnableMultiAZStandbyStringfalseEnables Multi-AZ with standby for data nodes. Improves availability but increases cost.
OpenSearchVersionStringOpenSearch_2.17OpenSearch engine version to deploy. Must be a valid supported version.
DataInstanceTypeStringt3.small.searchEC2 instance type for data nodes. Affects performance and pricing.
DataInstanceCountNumber1Number of data nodes in the cluster. Impacts redundancy and capacity.
DataNodeVolumeSizeNumber10Size (in GiB) of the EBS volume for each data node. Minimum is 10 GiB.
DedicatedMasterTypeString""Instance type for dedicated master nodes. Leave empty to disable.
DedicatedMasterCountNumber0Number of dedicated master nodes. Use 0 to disable; use 3+ for production.
AlarmEmailString""Optional email address to receive CloudWatch alarm notifications. Leave empty to disable SNS alerts.
RetentionInDaysNumber90Number of days to retain logs in CloudWatch Log Groups. Must match one of the supported retention values.
LogsSearchSlowEnabledStringfalseEnable CloudWatch log group for slow search query logs.
LogsIndexSlowEnabledStringfalseEnable CloudWatch log group for slow indexing operation logs.
LogsErrorEnabledStringfalseEnable CloudWatch log group for application error logs.

Post-Installation Steps

Update FormKiQ Stack

  1. Select your FormKiQ stack in CloudFormation
  2. Click "Update"
  3. Choose "Use current template"
  4. Set OpenSearchStackName to your OpenSearch stack name

OpenSearch Stack Name

Complete Update

  1. Review configuration
  2. Navigate through confirmation screens
  3. Acknowledge capabilities
  4. Submit stack update

Submit Create Stack

Post-Deployment Notes

  • Documents and metadata automatically sync with OpenSearch
  • Document content sync requires explicit configuration
  • Verify cluster health after deployment
  • Monitor resource usage

Development Configuration Summary

For development environments, recommended settings:

  • Single data node (DataInstanceCount: 1)
  • t3.small.search instances
  • No dedicated master nodes
  • 10GB storage
  • gp3 volume type
  • Single private subnet deployment