Amazon-CloudFormation [SOLVED]: AWS::ElastiCache::CacheCluster vs AWS::ElastiCache::ReplicationGroup

Amazon-CloudFormation [SOLVED]: AWS::ElastiCache::CacheCluster vs AWS::ElastiCache::ReplicationGroup

Home Forums Amazon Web Services Amazon CloudFormation Amazon-CloudFormation [SOLVED]: AWS::ElastiCache::CacheCluster vs AWS::ElastiCache::ReplicationGroup

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #233144

    Cloudy Point
    Keymaster

    QuestionQuestion

    I used this earlier to get a redis instance up successfully through cloudformation:

            "RedisCache": {
            "Type": "AWS::ElastiCache::CacheCluster",
            "Properties": {
                "ClusterName": {
                    "Fn::Join": ["-", [ {
                                "Ref": "EnvType"
                            }, {
                                "Ref": "EnvVersion"
                            }
                        ]]
                },
                "AutoMinorVersionUpgrade": "true",
                "AZMode": "single-az",
                "CacheNodeType": "cache.t2.medium",
                "Engine": "redis",
                "EngineVersion": "3.2.6",
                "NumCacheNodes": "1",
                "PreferredAvailabilityZone": "us-west-2a",
                "PreferredMaintenanceWindow": "sun:04:30-sun:05:30",
                "CacheSubnetGroupName": "redis-test-subnet-group",
                "VpcSecurityGroupIds": ["sg-group1", "sg-group2"]
            }
        },
    

    AS AWS has recently upgraded Redis to use AtRestEncryption,AuthToken and TransitEncryption I tried including those in the above code, but as per this only AWS::ElastiCache::ReplicationGroup accepts those parameters.

    How do I create a single Redis instance using AWS::ElastiCache::ReplicationGroup ?

    #233145

    Cloudy Point
    Keymaster

    Accepted AnswerAnswer

    From documentation,
    you need to create ReplicationGroup instead of CacheCluster and set NumNodeGroups to 1 and AutomaticFailoverEnabled to false.
    Both values are the default, so you can omit them.
    The API Documentation has more details on the parameter values for single node.

    Source: https://stackoverflow.com/questions/47431460/awselasticachecachecluster-vs-awselasticachereplicationgroup
    Author: jny
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.