Skip to content

Instantly share code, notes, and snippets.

@blagerweij
blagerweij / S3OutputStream.java
Created October 23, 2020 22:40
OutputStream which wraps S3Client, with support for streaming large files directly to S3
import java.io.ByteArrayInputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.AbortMultipartUploadRequest;
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.amazonaws.services.s3.model.CompleteMultipartUploadRequest;
import com.amazonaws.services.s3.model.InitiateMultipartUploadRequest;
@blagerweij
blagerweij / APKBUILD
Created February 8, 2023 22:57
Alpine port build for AWS-CLI v2
pkgname=aws-cli
pkgver=2.9.12
pkgrel=0
pkgdesc="Universal Command Line Interface for Amazon Web Services"
url="https://github.com/aws/aws-cli"
arch="all"
license="Apache-2.0"
depends="groff"
makedepends="unzip build-base libffi-dev cmake python3-dev"
install=""