fluent-plugin-dynamodb 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Amazon DynamoDB output plugin for Fluent event collector
1
+ # Amazon DynamoDB output plugin for [Fluentd](http://fluentd.org) event collector
2
2
 
3
3
  ##Installation
4
4
 
@@ -13,7 +13,6 @@ First of all, you need to create a table in DynamoDB. It's easy to create via Ma
13
13
 
14
14
  Specify table name, hash attribute name and throughput as you like. fluent-plugin-dynamodb will load your table schema and write event-stream out to your table.
15
15
 
16
- *currently supports only table with a primary key which has a string hash-key. (hash and range key is not supported.)*
17
16
 
18
17
  ### Fluentd
19
18
 
@@ -26,8 +25,8 @@ Specify table name, hash attribute name and throughput as you like. fluent-plugi
26
25
  dynamo_db_table access_log
27
26
  </match>
28
27
 
29
- * **aws\_key\_id (required)** - AWS access key id.
30
- * **aws\_sec\_key (required)** - AWS secret key.
28
+ * **aws\_key\_id (optional)** - AWS access key id. This parameter is required when your agent is not running on EC2 instance with an IAM Instance Profile.
29
+ * **aws\_sec\_key (optional)** - AWS secret key. This parameter is required when your agent is not running on EC2 instance with an IAM Instance Profile.
31
30
  * **proxy_uri (optional)** - your proxy url.
32
31
  * **dynamo\_db\_endpoint (required)** - end point of dynamodb. see [Regions and Endpoints](http://docs.amazonwebservices.com/general/latest/gr/rande.html#ddb_region)
33
32
  * **dynamo\_db\_table (required)** - table name of dynamodb.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
@@ -18,8 +18,8 @@ class DynamoDBOutput < Fluent::BufferedOutput
18
18
  require 'uuidtools'
19
19
  end
20
20
 
21
- config_param :aws_key_id, :string
22
- config_param :aws_sec_key, :string
21
+ config_param :aws_key_id, :string, :default => nil
22
+ config_param :aws_sec_key, :string, :default => nil
23
23
  config_param :proxy_uri, :string, :default => nil
24
24
  config_param :dynamo_db_table, :string
25
25
  config_param :dynamo_db_endpoint, :string, :default => nil
@@ -33,11 +33,12 @@ class DynamoDBOutput < Fluent::BufferedOutput
33
33
  end
34
34
 
35
35
  def start
36
- options = {
37
- :access_key_id => @aws_key_id,
38
- :secret_access_key => @aws_sec_key,
39
- :dynamo_db_endpoint => @dynamo_db_endpoint,
40
- }
36
+ options = {}
37
+ if @aws_key_id && @aws_sec_key
38
+ options[:access_key_id] = @aws_key_id
39
+ options[:secret_access_key] = @aws_sec_key
40
+ end
41
+ options[:dynamo_db_endpoint] = @dynamo_db_endpoint
41
42
  options[:proxy_uri] = @proxy_uri if @proxy_uri
42
43
 
43
44
  detach_multi_process do
@@ -123,3 +124,4 @@ end
123
124
 
124
125
 
125
126
  end
127
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-dynamodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-26 00:00:00.000000000 Z
12
+ date: 2014-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -102,21 +102,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  - - ! '>='
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
- segments:
106
- - 0
107
- hash: -2653667891675486738
108
105
  required_rubygems_version: !ruby/object:Gem::Requirement
109
106
  none: false
110
107
  requirements:
111
108
  - - ! '>='
112
109
  - !ruby/object:Gem::Version
113
110
  version: '0'
114
- segments:
115
- - 0
116
- hash: -2653667891675486738
117
111
  requirements: []
118
112
  rubyforge_project:
119
- rubygems_version: 1.8.24
113
+ rubygems_version: 1.8.25
120
114
  signing_key:
121
115
  specification_version: 3
122
116
  summary: Amazon DynamoDB output plugin for Fluent event collector