@@ -134,7 +134,7 @@ source "main_input" {
134
134
};
135
135
136
136
destination "output_default_test-s3-out" {
137
- s3(url("http://localhost:9000") bucket("s3bucket") access_key("access-key-secret-value") secret_key("secret-key-value") object_key("${HOST}/my-logs") object_key_timestamp("timestamp") template("${MESSAGE}\n") compression(no) compresslevel(9) chunk_size(5) max_object_size(5000) upload_threads(8) max_pending_uploads(32) flush_grace_period(60) region("s3region") storage_class("STANDARD") canned_acl("s3-canned-acl") persist_name("output_default_test-s3-out"));
137
+ s3(url("http://localhost:9000") bucket("s3bucket") access_key("access-key-secret-value") secret_key("secret-key-value") role("s3-role") object_key("${HOST}/my-logs") object_key_timestamp("timestamp") template("${MESSAGE}\n") compression(no) compresslevel(9) chunk_size(5) max_object_size(5000) upload_threads(8) max_pending_uploads(32) flush_grace_period(60) region("s3region") server_side_encryption("aws:kms") kms_key("kms-key") storage_class("STANDARD") canned_acl("s3-canned-acl") content_type("application/octet-stream ") persist_name("output_default_test-s3-out"));
138
138
};
139
139
` )
140
140
@@ -193,19 +193,23 @@ destination "output_default_test-s3-out" {
193
193
},
194
194
},
195
195
},
196
- ObjectKey : "${HOST}/my-logs" ,
197
- ObjectKeyTimestamp : "timestamp" ,
198
- Template : "${MESSAGE}\n " ,
199
- Compression : config .NewFalse (),
200
- CompressLevel : 9 ,
201
- ChunkSize : 5 ,
202
- MaxObjectSize : 5000 ,
203
- UploadThreads : 8 ,
204
- MaxPendingUploads : 32 ,
205
- FlushGracePeriod : 60 ,
206
- Region : "s3region" ,
207
- StorageClass : "STANDARD" ,
208
- CannedAcl : "s3-canned-acl" ,
196
+ Role : "s3-role" ,
197
+ ObjectKey : "${HOST}/my-logs" ,
198
+ ObjectKeyTimestamp : "timestamp" ,
199
+ Template : "${MESSAGE}\n " ,
200
+ Compression : config .NewFalse (),
201
+ CompressLevel : 9 ,
202
+ ChunkSize : 5 ,
203
+ MaxObjectSize : 5000 ,
204
+ UploadThreads : 8 ,
205
+ MaxPendingUploads : 32 ,
206
+ FlushGracePeriod : 60 ,
207
+ Region : "s3region" ,
208
+ ServerSideEncryption : "aws:kms" ,
209
+ KmsKey : "kms-key" ,
210
+ StorageClass : "STANDARD" ,
211
+ CannedAcl : "s3-canned-acl" ,
212
+ ContentType : "application/octet-stream" ,
209
213
}},
210
214
},
211
215
},
0 commit comments