【发布时间】:2019-07-19 18:30:27
【问题描述】:
大家好,我正在与 Cloudformation 一起配置 EC2 集群和 ElastiCache 集群。当我使用 Cloudformation 创建堆栈时,我在 EC2 instance 处提供了一个输出错误配置。
错误是:找不到输出堆栈(如?)
如何接收 ElasticCache 主端点?
Outputs :
EndPoint:
Description: "EndPoint Redis"
Value: !GetAtt ElastiCacheCluster.PrimaryEndPoint.Address
UserData:
Fn::Base64:
Fn::Sub:
- |
#!/bin/bash
echo ${RedisHost} > /tmp/redis_host
- RedisHost: !GetAtt ElastiCache.Outputs.EndPoint
【问题讨论】:
标签: amazon-web-services amazon-cloudformation