如何通过 CloudFormation 模板将 Redis AUTH 令牌添加到 ElastiCache?

How to add a Redis AUTH token to a ElastiCache via a CloudFormation template?

我正在设置新的 Redis ElastiCache 堆栈,需要帮助添加 AUTH 令牌作为额外的安全层。使用 CloudFormation 模板部署堆栈时应该添加什么参数?

我找不到任何关于此的文档,因此,如果有人能提供帮助,我将不胜感激。

[更新]

添加 AuthToken 参数后,我在 CloudFormation 控制台上看到错误 "Encountered unsupported property AuthToken"

在这里回答我自己的问题,以防有人遇到同样的问题。

如果您需要启用 AUTH 的 ElastiCache Redis 实例,则需要使用复制组而不是缓存集群。记住也要启用传输中加密,因为它们是相辅相成的。