Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Add RedisEndpoint.* attributes to CacheCluster #71

Closed
wants to merge 1 commit into from

Conversation

jmhobbs
Copy link

@jmhobbs jmhobbs commented Dec 30, 2016

Fn::GetAtt on a AWS::ElastiCache::CacheCluster can also return:

  • RedisEndpoint.Address
  • RedisEndpoint.Port

`Fn::GetAtt` on a AWS::ElastiCache::CacheCluster can also return:

* `RedisEndpoint.Address`
* `RedisEndpoint.Port`
@jmhobbs
Copy link
Author

jmhobbs commented Dec 30, 2016

Example JSON

  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Example",
  "Outputs": {
    "RedisDNS": {
      "Description": "Internal DNS name of redis.",
      "Value": { "Fn::GetAtt": [ "RedisCacheCluster", "RedisEndpoint.Address" ] }
    }
  },
  "Resources": {
    "RedisCacheCluster": {
      "Type": "AWS::ElastiCache::CacheCluster",
      "Properties": {
        "ClusterName": "example-redis",
        "AutoMinorVersionUpgrade" : true,
        "AZMode": "single-az",
        "CacheNodeType": "cache.t2.micro",
        "Engine": "redis",
        "NumCacheNodes": 1
      }
    }
  }
}

Example run with my current build;

$ cfval validate example.json
Outputs.RedisDNS.Value.Fn::GetAtt ... RedisEndpoint.Address is not an attribute of AWS::ElastiCache::CacheCluster

Fail: 1 failures, 0 warnings
$ cfval --version
0.3.0

Thanks!

@jmhobbs jmhobbs closed this Feb 7, 2019
@jmhobbs jmhobbs deleted the patch-1 branch February 7, 2019 17:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant