-
Notifications
You must be signed in to change notification settings - Fork 30
Provisioning Source Cluster for Testing
Tanner Lewis edited this page Aug 8, 2024
·
9 revisions
This guide walks through steps to provision an Elasticsearch cluster on EC2. The CDK that will provision this cluster can be found on the migration-es
branch of the opensearch-cluster-cdk
Github forked repo
- Download repository for source cluster CDK
git clone https://github.com/lewijacn/opensearch-cluster-cdk.git && cd opensearch-cluster-cdk && git checkout migration-es
- Configure cluster options
The below options configure a single node Elasticsearch 7.10.2 cluster on EC2 as well as a VPC to place the cluster into, though alternatively a vpcId
could be provided for an existing VPC. These options can be copied and pasted into a cdk.context.json
file in the current repository root directory to use for a deployment. Be sure to swap the <STAGE>
placeholders with the desired deployment stage e.g. dev
{
"source-single-node-ec2": {
"suffix": "ec2-source-<STAGE>",
"networkStackSuffix": "ec2-source-<STAGE>",
"distVersion": "7.10.2",
"cidr": "12.0.0.0/16",
"distributionUrl": "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.10.2-linux-x86_64.tar.gz",
"captureProxyEnabled": false,
"securityDisabled": true,
"minDistribution": false,
"cpuArch": "x64",
"isInternal": true,
"singleNodeCluster": true,
"networkAvailabilityZones": 2,
"dataNodeCount": 1,
"managerNodeCount": 0,
"serverAccessType": "ipv4",
"restrictServerAccessTo": "0.0.0.0/0"
}
}
For a full list of options, please reference the CDK options here
Owner: @lewijacn
Encountering a compatibility issue or missing feature?
- Search existing issues to see if it’s already reported. If it is, feel free to upvote and comment.
- Can’t find it? Create a new issue to let us know.
- Migration Assistant Overview
- Is Migration Assistant Right for You?
- Existing Data Migration - Quick Start Guide
- A. Snapshot Creation Verification
- B. Client Traffic Switchover Verification
- C. Traffic Capture Verification
- D. System Reset Before Migration