fluent-plugin-cloudwatch-ingest 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a6ab1dc3986131dcfe45db3c801aca54a427af
|
4
|
+
data.tar.gz: 2c0be67155357340ff8cc519a55bfb1ff423cab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb3c533f4e0aba4a0ec3244da01cbc0d5a1eed27be35e0c9c4f4302dde404f790ddf25ac18b2507bbb80bc755b45c47802fcf7a53e5ab291cb59985a0c7ad48
|
7
|
+
data.tar.gz: dcda3d589504b08c1ebde08b84da802d43576f1e03f0a0f59d37428e77ebadbd3a7c3058bba4fe6d98e162d6ccff7bfa860a5013011b385bad7c0dc62af5b39d
|
@@ -8,7 +8,7 @@ require 'yaml'
|
|
8
8
|
module Fluent::Plugin
|
9
9
|
class Cloudwatch < Input
|
10
10
|
Fluent::Plugin.register_input('cloudwatch', self)
|
11
|
-
helpers :
|
11
|
+
helpers :compat_parameters
|
12
12
|
|
13
13
|
desc 'The region of the source cloudwatch logs'
|
14
14
|
config_param :region, :string, default: 'us-east-1'
|
@@ -32,23 +32,28 @@ module Fluent::Plugin
|
|
32
32
|
|
33
33
|
def initialize
|
34
34
|
super
|
35
|
+
log.info('Starting fluentd-plugin-cloudwatch-ingest')
|
35
36
|
end
|
36
37
|
|
37
38
|
def configure(conf)
|
38
39
|
super
|
40
|
+
log.info('Configured fluentd-plugin-cloudwatch-ingest')
|
39
41
|
end
|
40
42
|
|
41
43
|
def start
|
44
|
+
log.info('Started fluentd-plugin-cloudwatch-ingest')
|
45
|
+
|
42
46
|
# Get a handle to Cloudwatch
|
43
47
|
aws_options = {}
|
44
48
|
Aws.config[:region] = @region
|
49
|
+
log.info("Working in region #{@region}")
|
50
|
+
|
45
51
|
if @sts_enabled
|
46
52
|
aws_options[:credentials] = Aws::AssumeRoleCredentials.new(
|
47
53
|
role_arn: @sts_arn,
|
48
54
|
role_session_name: @sts_session_name
|
49
55
|
)
|
50
56
|
|
51
|
-
log.info("Working in region #{@region}")
|
52
57
|
log.info("Using STS for authentication with source account ARN:
|
53
58
|
#{@sts_arn}, session name: #{@sts_session_name}")
|
54
59
|
else
|