amazon-web-services - 如何获取 AWS ElastiCache 的 Reader Endpoint?
问题描述
我正在部署一个 AWS ElastiCache 复制组,根据这篇文章,它应该公开 Reader Endpoint。它确实如此,但仅在 UI 中意味着我既不能通过CLI也不能通过Boto3检索此端点。我正在使用 Cloud Formation 部署复制组。这是与缓存相关的部分:
elastiCache:
Type: AWS::ElastiCache::ReplicationGroup
Properties:
AutoMinorVersionUpgrade: false
AutomaticFailoverEnabled: true
AtRestEncryptionEnabled: true
TransitEncryptionEnabled: true
SnapshotRetentionLimit: 0
AuthToken: password123
CacheNodeType: cache.m4.large
NumCacheClusters: 2
CacheSubnetGroupName: !Ref subnetGroup
ReplicationGroupId: Test
ReplicationGroupDescription: My ElastiCache
Engine: redis
EngineVersion: 5.0.4
CacheParameterGroupName: default.redis5.0
Port: 6379
SecurityGroupIds:
- !Ref securityGroup
我尝试了很多部署方式,但都没有运气。我开始认为除了 UI 之外它不会暴露在任何地方。有没有其他人有检索这件作品的经验?
解决方案
这个答案有一个从主端点构建读取器端点的解决方法。
推荐阅读
- javascript - Javascript 从 json 填充选择选项
- python - Telegram 机器人无法向群组发送相同的消息
- c++ - 如何有效地将(某些)项目从一个 std::map 移动到另一个?
- ruby-on-rails - 带有 Rails 的 Google App Engine Ruby 标准环境的正确 Ruby 版本
- javascript - Python+Selenium 在页面上执行 javascript 后重建真正的 HTML
- spring-security - Spring @AuthenticationPrincipal 作为 Autowired 对象
- oracle - 创建或更改 BLOB/CLOB 列长度 - Oracle 11
- javascript - 通过 https 建立 SSE 连接失败 - 如何解决该问题
- python - 覆盖 jwt_response_payload_handler 以发送回序列化用户时出错
- python-3.x - 在 python 3 中使用 selenium chrome 驱动程序将文本插入文本框