Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for S3 server side encryption and storage class #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ Set the secrets below associated with your desired log destination

### AWS S3

| Secret | Description |
| ----------------------- | --------------------------------------------------------------------------------------- |
| `AWS_ACCESS_KEY_ID` | AWS Access key with access to the log bucket |
| `AWS_SECRET_ACCESS_KEY` | AWS secret access key |
| `AWS_BUCKET` | AWS S3 bucket to store logs in |
| `AWS_REGION` | Region for the bucket |
| `S3_ENDPOINT` | (optional) Endpoint URL for S3 compatible object stores such as Cloudflare R2 or Wasabi |
| Secret | Description |
| ----------------------- | ---------------------------------------------------------------------------------------------- |
| `AWS_ACCESS_KEY_ID` | AWS Access key with access to the log bucket |
| `AWS_SECRET_ACCESS_KEY` | AWS secret access key |
| `AWS_BUCKET` | AWS S3 bucket to store logs in |
| `AWS_REGION` | Region for the bucket |
| `S3_ENDPOINT` | (optional) Endpoint URL for S3 compatible object stores such as Cloudflare R2 or Wasabi |
| `S3_SSE` | (optional) Server-side encryption of the object in S3. Valid values are `AES256` and `aws:kms` |
| `S3_SSE_KMS_KEY_ID` | (optional) Customer-managed KMS key ID to use to server-side encrypt the object in S3 |
| `S3_STORAGE_CLASS` | (optional) The type of storage to use for the object. Defaults to `STANDARD` |

### Axiom

Expand Down
5 changes: 4 additions & 1 deletion vector-configs/sinks/aws_s3.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
key_prefix = "{{fly.app.name}}/%F/" # optional, default
healthcheck.enabled = true # optional, default
${S3_ENDPOINT+endpoint = "\"$S3_ENDPOINT"\"}
${AWS_ENDPOINT_URL_S3+endpoint = "\"$AWS_ENDPOINT_URL_S3"\"}
${AWS_ENDPOINT_URL_S3+endpoint = "\"$AWS_ENDPOINT_URL_S3"\"}
${S3_SSE+server_side_encryption = "\"$S3_SSE"\"}
${S3_SSE_KMS_KEY_ID+ssekms_key_id = "\"$S3_SSE_KMS_KEY_ID"\"}
${S3_STORAGE_CLASS+storage_class = "\"${S3_STORAGE_CLASS}"\"}