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: 456f41b8b7dace703db8fe006d3ba82789353a1a
4
- data.tar.gz: deab4d92676649424ffbab582995085c098ac9de
3
+ metadata.gz: e52682735bb8093a12c5832c544b2ea3cbdfb6d2
4
+ data.tar.gz: 65d93512fe17e8de0852daa46785c62da90d33ef
5
5
  SHA512:
6
- metadata.gz: 7d21bab80223eac19400fcca1c389a7b8cba2862a942afe4fe230c35e03c715c70be9733d8ab44bed849ab582c5df1bcbf5d617d95b31fe80b08539730ca85aa
7
- data.tar.gz: 5d3347dcf189fb4468e147f722894ac664946fd915240a5f7af8e9b73675665889f0135f85e09293230633d954c23b7ce1223ff8da1b449cb77caa9fffef2b4b
6
+ metadata.gz: 312acfb0db847730a56cb905cc3cd39ce5fdfdfb8a2969dbb92cf785489348c17f9560edd5328effd86b5a110b01b93cf1ed7281d426afc2ce06e23c8d8dc3a3
7
+ data.tar.gz: 60617ff9310066139c5fb2a36646b56956e49224126896bfbdac0f1ec895ceb96bc16bc27c24228a1f3b8b1704168c6c37d4b3f856f50c125b534659c5db5458
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [v0.1.6](https://github.com/dtan4/terraforming/releases/tag/v0.1.6) (2015-08-10)
2
+
3
+ ### Fixed
4
+
5
+ - Stop including ElastiCache port at any time #112
6
+
1
7
  # [v0.1.5](https://github.com/dtan4/terraforming/releases/tag/v0.1.5) (2015-08-10)
2
8
 
3
9
  ### Updated
@@ -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 %>
@@ -1,3 +1,3 @@
1
1
  module Terraforming
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraforming
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Fujita