cfn-bridge 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OWQwOGUwN2M2ODE3NDA3ZThlODhjMTM4MDU0YTI5OTVjNDg1Yzc1Zg==
5
- data.tar.gz: !binary |-
6
- NzAzOTdlMzFiNjczYTgzOWM5ODJhZThiM2JlODAxYjE0MTZkYjljYw==
2
+ SHA1:
3
+ metadata.gz: fdf4247d7a7ce9da6d108dd67c061ca2afde2632
4
+ data.tar.gz: 666fd1ed6de634148b7de84116434dc62b7d8a3e
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzZjNjBkMjY4YWUzYzIwMWM1Y2RiYWNhZmI5MzRhMWU3YmZkOTU0NDFkNmY2
10
- OTMwNmM2YmJjOTM0NmU1NjRiZTFmOGZiY2M5OWNhNzdjOTQxMDgyM2ZhNzY0
11
- NGY1ZWU2OGRhNzcwNDFmZjIyZjMzZDVmYWM4M2JhZWYwNDM4MDQ=
12
- data.tar.gz: !binary |-
13
- ZjVkMTkzMGM5OGU1OTkxOTkxNDZiZWNiMWNlZmI5OWQ0N2I3YjllZTAzNDFh
14
- YTEzZTYzMjVmZTk0MTFlMmYzZTI1YWEzNDc1Y2U5ZWE0ZTdhMGEyNGFmODVh
15
- MGViM2RhNTZkODZlZDE3NjAwZWFiNWVhZWM3MTc0OGQ1YWU4NTU=
6
+ metadata.gz: 383faa96dfc769a015290ee82614fbca7531fc99e93bd96a66e82edab67e37b0b5d3287db38535430e1756eb840af714d64ae83f7cd918445c1ab1f794a5ca06
7
+ data.tar.gz: ff083e6d235889dc34441749e85616b35988fffe75a45d55a5108c27ad2ad79dc3afdf4d2ef614ee6ce8c9e1ae566034feb4839e65733139548e7cf502960b9f
@@ -16,12 +16,18 @@ module CloudFormation
16
16
 
17
17
  wait_until_cluster_is_available(cluster_id)
18
18
 
19
+ data = {
20
+ ELASTI_CACHE::REPLICA_CLUSTER_ID => cluster_id,
21
+ ELASTI_CACHE::NODE_URLS => node_urls(cluster_id),
22
+
23
+ }
24
+
25
+ if config = config_endpoint(cluster_id)
26
+ data[ELASTI_CACHE::CONFIG_ENDPOINT] = config
27
+ end
28
+
19
29
  {
20
- FIELDS::DATA => {
21
- ELASTI_CACHE::REPLICA_CLUSTER_ID => cluster_id,
22
- ELASTI_CACHE::NODE_URLS => node_urls(cluster_id),
23
- ELASTI_CACHE::CONFIG_ENDPOINT => config_endpoint(cluster_id)
24
- },
30
+ FIELDS::DATA => data,
25
31
  FIELDS::PHYSICAL_RESOURCE_ID => cluster_id,
26
32
  }
27
33
  end
@@ -1,5 +1,5 @@
1
1
  module CloudFormation
2
2
  module Bridge
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
@@ -0,0 +1,58 @@
1
+ {
2
+ "AWSTemplateFormatVersion": "2010-09-09",
3
+ "Description": "AWS CloudFormation template for standing a redis cluster.",
4
+
5
+ "Parameters": {
6
+ "EntryTopic": {
7
+ "Description": "SNS topic that will be used no notify custom resource creation",
8
+ "Type": "String"
9
+ }
10
+ },
11
+
12
+ "Resources": {
13
+
14
+ "RedisSecurityGroup": {
15
+ "Type": "AWS::ElastiCache::SecurityGroup",
16
+ "Properties": {
17
+ "Description": "Security group for the cache"
18
+ }
19
+ },
20
+
21
+ "ElasticacheCluster": {
22
+ "Type": "AWS::ElastiCache::CacheCluster",
23
+ "Properties": {
24
+ "AutoMinorVersionUpgrade": "true",
25
+ "Engine": "redis",
26
+ "CacheNodeType": "cache.t1.micro",
27
+ "NumCacheNodes": "1",
28
+ "CacheSecurityGroupNames": [
29
+ {
30
+ "Ref": "RedisSecurityGroup"
31
+ }
32
+ ]
33
+ }
34
+ },
35
+
36
+ "ElasticacheClusterURLs": {
37
+ "Type": "Custom::ElastiCacheNodeURLs",
38
+ "Properties": {
39
+ "ServiceToken": {
40
+ "Ref": "EntryTopic"
41
+ },
42
+ "ClusterId": {
43
+ "Ref": "ElasticacheCluster"
44
+ }
45
+ }
46
+ }
47
+
48
+ },
49
+
50
+ "Outputs": {
51
+ "ReplicaURLs": {
52
+ "Value": {
53
+ "Fn::GetAtt": ["ElasticacheClusterURLs", "NodeURLs"]
54
+ }
55
+ }
56
+ }
57
+
58
+ }
metadata CHANGED
@@ -1,181 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maurício Linhares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.5
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.6.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 10.3.2
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 10.3.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: dotenv
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.11.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.11.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.10.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.10.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: aws-sdk
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 1.50.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.50.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: faraday
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 0.9.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.9.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: faraday_middleware
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.9.1
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.9.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: faraday_curl
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.0.2
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.0.2
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: thor
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.19.1
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.19.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: typhoeus
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: 0.6.9
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: 0.6.9
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rollbar
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: 1.0.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.0.0
181
181
  description: Implements custom operations for CF calls
@@ -186,8 +186,8 @@ executables:
186
186
  extensions: []
187
187
  extra_rdoc_files: []
188
188
  files:
189
- - .gitignore
190
- - .rspec
189
+ - ".gitignore"
190
+ - ".rspec"
191
191
  - Gemfile
192
192
  - LICENSE.txt
193
193
  - README.md
@@ -228,6 +228,7 @@ files:
228
228
  - spec/files/sample-create-message.json
229
229
  - spec/files/sample-delete-message.json
230
230
  - spec/files/sample-replica-cluster.json
231
+ - spec/files/sample-replication-group-urls-formation.json
231
232
  - spec/files/sample-replication-group.json
232
233
  - spec/files/subscribe-to-sns-formation.json
233
234
  - spec/files/test-formation.json
@@ -252,17 +253,17 @@ require_paths:
252
253
  - lib
253
254
  required_ruby_version: !ruby/object:Gem::Requirement
254
255
  requirements:
255
- - - ! '>='
256
+ - - ">="
256
257
  - !ruby/object:Gem::Version
257
258
  version: '0'
258
259
  required_rubygems_version: !ruby/object:Gem::Requirement
259
260
  requirements:
260
- - - ! '>='
261
+ - - ">="
261
262
  - !ruby/object:Gem::Version
262
263
  version: '0'
263
264
  requirements: []
264
265
  rubyforge_project:
265
- rubygems_version: 2.1.11
266
+ rubygems_version: 2.4.2
266
267
  signing_key:
267
268
  specification_version: 4
268
269
  summary: Implements custom operations for CF calls
@@ -283,6 +284,7 @@ test_files:
283
284
  - spec/files/sample-create-message.json
284
285
  - spec/files/sample-delete-message.json
285
286
  - spec/files/sample-replica-cluster.json
287
+ - spec/files/sample-replication-group-urls-formation.json
286
288
  - spec/files/sample-replication-group.json
287
289
  - spec/files/subscribe-to-sns-formation.json
288
290
  - spec/files/test-formation.json