title: AWS Cloudformation Output ElastiCacheCluster
body: <p>Hi everyone I'm working provision EC2 Cluster and ElastiCache Cluster together  with Cloudformation . When I create the stack with Cloudformation I'm giving an output error provisioning at EC2 instance . </p>
  
  <p>The error is: Output is not found stack (like ? )</p>
  
  <p>How I can receive the ElasticCache primary endpoint? </p>
  
  <pre><code>Outputs : 
    EndPoint:
      Description: "EndPoint Redis"
      Value: !GetAtt ElastiCacheCluster.PrimaryEndPoint.Address
  </code></pre>
  
  <hr>
  
  <pre><code>  UserData:
      Fn::Base64:
        Fn::Sub: 
        - |
          #!/bin/bash
          echo ${RedisHost} &gt; /tmp/redis_host
  
        - RedisHost: !GetAtt ElastiCache.Outputs.EndPoint
  </code></pre>