gpt4 book ai didi

amazon-web-services - elasticache如何复制配置组default.redis3.2以便更改一个参数而不写入103个未更改的键

转载 作者:可可西里 更新时间:2023-11-01 11:27:19 25 4
gpt4 key购买 nike

我使用 AWS elasticache 使用此参数组 default.redis3.2,如您在此 cloudformation 示例中所见:

"itophubElastiCacheReplicationGroup" : {
"Type" : "AWS::ElastiCache::ReplicationGroup",
"Properties" : {
"ReplicationGroupDescription" : "Hub WebServer redis cache cluster",
"AutomaticFailoverEnabled" : "false",
"AutoMinorVersionUpgrade" : "true",
"CacheNodeType" : "cache.t2.small",
"CacheParameterGroupName" : "default.redis3.2",
"CacheSubnetGroupName" : { "Ref": "cachesubnethubprivatecachesubnetgroup" },
"Engine" : "redis",
"EngineVersion" : "3.2.4",
"NumCacheClusters" : { "Ref" : "ElasticacheRedisNumCacheClusters" },
"PreferredMaintenanceWindow" : "sun:04:00-sun:05:00",
"SecurityGroupIds" : [ { "Fn::GetAtt": ["sgpHubCacheSG", "GroupId"] } ]
}
},

我想要实现的是拥有超过默认的16个数据库,为此,我必须更改参数组中的关键databases。由于 default.redis3.2 是只读的,我必须创建自己的,我希望除 databases 之外的所有参数都与 default.redis3.2。它代表 104 个参数,我不想手动复制它们中的每一个,所以:

我想知道是否有办法复制/继承aws创建的default.redis3.2的参数?

(如果可能的话使用cloudformation)

最佳答案

没有任何反应,我手动创建了conf。将其与 default.redis3.2 进行比较,每个默认值都是相同的,因此我最终只更改了数据库

我手动创建了它,然后,我以这种方式重新创建了它:

"hubElastiCacheParameterGroup" : {
"Type": "AWS::ElastiCache::ParameterGroup",
"Properties": {
"CacheParameterGroupFamily" : "redis3.2",
"Description" : "parameter group to match itop hub needs",
"Properties" : {
"databases": "200"
}
}
},

在这里使用它:

"hubElastiCacheReplicationGroup01" : {
"Type" : "AWS::ElastiCache::ReplicationGroup",
"Properties" : {
[...]
"CacheParameterGroupName" : { "Ref" : "hubElastiCacheParameterGroup" },
[...]
}
},

关于amazon-web-services - elasticache如何复制配置组default.redis3.2以便更改一个参数而不写入103个未更改的键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44452481/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com