1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
You can create an Opensearch domain with "t3.small.search" as follows.
The number of data nodes and multi-AZ standby can be configured with a parameter called "capacity".
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchservice.Domain.html
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import * as opensearch from "aws-cdk-lib/aws-opensearchservice";
export class CdkAppStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const domain = new opensearch.Domain(this, 'Domain', {
version: opensearch.EngineVersion.OPENSEARCH_2_11,
capacity: {
dataNodeInstanceType: "t3.small.search",
dataNodes: 1,
multiAzWithStandbyEnabled: false
}
});
}
}
Relevant content
- asked 6 months ago
- AWS OFFICIALUpdated 23 days ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago