terraforming 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52682735bb8093a12c5832c544b2ea3cbdfb6d2
|
4
|
+
data.tar.gz: 65d93512fe17e8de0852daa46785c62da90d33ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312acfb0db847730a56cb905cc3cd39ce5fdfdfb8a2969dbb92cf785489348c17f9560edd5328effd86b5a110b01b93cf1ed7281d426afc2ce06e23c8d8dc3a3
|
7
|
+
data.tar.gz: 60617ff9310066139c5fb2a36646b56956e49224126896bfbdac0f1ec895ceb96bc16bc27c24228a1f3b8b1704168c6c37d4b3f856f50c125b534659c5db5458
|
data/CHANGELOG.md
CHANGED
@@ -30,12 +30,15 @@ module Terraforming
|
|
30
30
|
"node_type" => cache_cluster.cache_node_type,
|
31
31
|
"num_cache_nodes" => "1",
|
32
32
|
"parameter_group_name" => cache_cluster.cache_parameter_group.cache_parameter_group_name,
|
33
|
-
"port" => "11211",
|
34
33
|
"security_group_ids.#" => security_group_ids_of(cache_cluster).length.to_s,
|
35
34
|
"security_group_names.#" => security_group_names_of(cache_cluster).length.to_s,
|
36
35
|
"subnet_group_name" => cache_cluster.cache_subnet_group_name,
|
37
36
|
"tags.#" => "0",
|
38
37
|
}
|
38
|
+
|
39
|
+
attributes["port"] =
|
40
|
+
cache_cluster.configuration_endpoint.port.to_s if cache_cluster.configuration_endpoint
|
41
|
+
|
39
42
|
resources["aws_elasticache_cluster.#{cache_cluster.cache_cluster_id}"] = {
|
40
43
|
"type" => "aws_elasticache_cluster",
|
41
44
|
"primary" => {
|
@@ -6,7 +6,9 @@ resource "aws_elasticache_cluster" "<%= cache_cluster.cache_cluster_id %>" {
|
|
6
6
|
node_type = "<%= cache_cluster.cache_node_type %>"
|
7
7
|
num_cache_nodes = <%= cache_cluster.num_cache_nodes %>
|
8
8
|
parameter_group_name = "<%= cache_cluster.cache_parameter_group.cache_parameter_group_name %>"
|
9
|
+
<%- if cache_cluster.configuration_endpoint -%>
|
9
10
|
port = <%= cache_cluster.configuration_endpoint.port %>
|
11
|
+
<%- end -%>
|
10
12
|
<%- if cluster_in_vpc?(cache_cluster) -%>
|
11
13
|
subnet_group_name = "<%= cache_cluster.cache_subnet_group_name %>"
|
12
14
|
security_group_ids = <%= security_group_ids_of(cache_cluster).inspect %>
|
data/lib/terraforming/version.rb
CHANGED