{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation template for standing a redis cluster.", "Parameters": { "EntryTopic": { "Description": "SNS topic that will be used no notify custom resource creation", "Type": "String" } }, "Resources": { "RedisClusterReplicationGroup": { "Type": "Custom::ElastiCacheReplicationGroup", "Properties": { "ServiceToken": { "Ref": "EntryTopic" }, "ClusterId": "cluster-id-here", "ReplicationGroupId": "dev-redis-rep-group", "Description": "Sample replication group for the redis instances" } }, "RedisReplicaCluster": { "Type": "Custom::ElastiCacheReplicaCluster", "Properties": { "ServiceToken": { "Ref": "EntryTopic" }, "ReplicaClusterId": "dev-redis-replica", "ReplicationGroupId": { "Fn::GetAtt": ["RedisClusterReplicationGroup", "ReplicationGroupId"] } } } }, "Outputs": { "ReplicationGroupId": { "Value": { "Fn::GetAtt": ["RedisClusterReplicationGroup", "ReplicationGroupId"] } }, "ReplicaClusterURLs": { "Value": { "Fn::GetAtt": [ "RedisReplicaCluster", "NodeURLs" ] } } } }