- Follow instructions in Pulumi Get Started Docs on AWS
- Create a key pair using Amazon EC2
- Run
pulumi stack init tidb-cluster-aws
to create a pulumi stack corresponding toPulumi.tidb-cluster-aws.yaml
config file. You can skip this if stack already exists. - Change
Pulumi.tidb-cluster-aws.yaml
to your desired configuration. Note thatec2KeyName
should be the same as the name you create in step 2, andec2KeyPemFilename
should point to the private key file you downloaded. - Run
pulumi up -y
and./post_script.sh
, and the ec2 instances are ready to go!- The ec2 sshd startup time is unpredictable. If the
./post_script.sh
script failed, please try again later. - You can ssh to each other within the ec2 instances with just their public/private IPs, like
ssh 172.31.1.2
. - You can access the ports from everywhere described in TiDB Network Requirements.
- The ec2 sshd startup time is unpredictable. If the
- Get
tiup
on one ec2 instance, spin up the TiDB cluster, run benchmark, and do whatever you like!- There's a
tiup
topology template file namedtidb-cluster.tiup-topology.yaml
in this project, you can start there.
- There's a
- Run
pulumi destroy -y
to destroy all the resources