From 38c4dfd699e3f11efe5a0651886e3c7b6084fdb1 Mon Sep 17 00:00:00 2001 From: Kyle McLaren Date: Tue, 23 Jan 2024 15:34:20 +0200 Subject: [PATCH] Update variable names for Tigris compatibility (#55) * updates for tigris compatibility * don't break existing configs --- vector-configs/sinks/aws_s3.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vector-configs/sinks/aws_s3.toml b/vector-configs/sinks/aws_s3.toml index 41294c1..468911d 100644 --- a/vector-configs/sinks/aws_s3.toml +++ b/vector-configs/sinks/aws_s3.toml @@ -2,11 +2,12 @@ # General type = "aws_s3" inputs = ["log_json"] - bucket = "${AWS_BUCKET}" + bucket = "${AWS_BUCKET:-$BUCKET_NAME}" compression = "gzip" - region = "${AWS_REGION}" + region = "${AWS_REGION:-auto}" framing.method = "newline_delimited" encoding.codec = "json" key_prefix = "{{fly.app.name}}/%F/" # optional, default healthcheck.enabled = true # optional, default - ${S3_ENDPOINT+endpoint = "$S3_ENDPOINT"} + ${S3_ENDPOINT+endpoint = "\"$S3_ENDPOINT"\"} + ${AWS_ENDPOINT_URL_S3+endpoint = "\"$AWS_ENDPOINT_URL_S3"\"} \ No newline at end of file