Use AWS CloudFormation to Create ShardingSphere HA Clusters
AWS CloudFormation is an infrastructure as code (IaC) service that allows you to easily model, provision, and manage all the cloud services provided by AWS by custom templates.
Traditionally, when we create a new architecture, we need to manually configure it in AWS step by step, which can cause some errors, such as forgetting some steps.
Now with CloudFormation, we can use declarative configuration to define resources and then create and manage them without worrying about the dependency order of the resources.
In real-world scenarios, we often need to create duplicate architectures. For example, we can build a set of MQ clusters in a pre-release environment whose architecture and production environment are consistent and create an AutoScalingGroup with the same configuration in each availability zone (AZ).