我之前使用这个方法通过CloudFormation成功地启动了Redis实例:
"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"]
}
},
最近,AWS升级了Redis以使用
AtRestEncryption
,AuthToken
和TransitEncryption
。我尝试在上述代码中包含它们,但根据this,只有AWS::ElastiCache::ReplicationGroup
接受这些参数。如何使用AWS::ElastiCache::ReplicationGroup
创建单个Redis实例?