Skip to content

Instantly share code, notes, and snippets.

@yomajkel yomajkel/post.scala
Created Sep 24, 2018

Embed
What would you like to do?
the description for this gist
val credentials = new BasicAWSCredentials("ACCESS_KEY", "SECRET_KEY")
val s3Client = new AmazonS3Client(credentials)
s3Client.setRegion(Region.getRegion(Regions.EU_WEST_3))
val request = new PutObjectRequest("S3_BUCKET", "s3FileKey", file)
s3Client.putObject(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.