HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-packages/awscli/examples/elasticache/create-replication-group.rst
**To create an Amazon ElastiCache Replication Group**

The following ``create-replication-group`` command launches a new Amazon ElastiCache Redis replication group::

    aws elasticache create-replication-group --replication-group-id myRedis \
    --replication-group-description "desc of myRedis" \
    --automatic-failover-enabled --num-cache-clusters 3 \
    --cache-node-type cache.m3.medium \
    --engine redis --engine-version 2.8.24 \
    --cache-parameter-group-name default.redis2.8 \
    --cache-subnet-group-name default --security-group-ids sg-12345678 

In the preceding example, the replication group is created with 3 clusters(primary plus 2 replicas) and has a cache node class of cach3.m3.medium.
With `--automatic-failover-enabled` option, Multi-AZ and automatic failover are enabled.
    
This command output a JSON block that indicates that the replication group was created.