Publish files to Cornell Box from your application

  • Don’t use email
  • Don’t require fileshare access
  • Allow functional users to control the access list
  • Track who accesses the files
  • Be easy to use for all involved

The Code

Setting up your App with Cornell

Storing Credentials

Using the Box API

Our specific use case and example

from cu_box import clientcredentials_json = client.get_aws_ssm_parameter('box_integration_credentials')
box = client.get_box_client(credentials_json)
service_account = box.user().get()print 'Acting as user:'
print 'Service Account name: {0}'.format(service_account.name)
print 'Service Account login: {0}'.format(service_account.login)
from cu_box import clientEXAMPLE_FOLDER_ID = '40977453470'
EXAMPLE_FILE = './example_file.txt'
credentials_json = client.get_aws_ssm_parameter('box_integration_credentials')
box = client.get_box_client(credentials_json)
client.write_file_to_box(box, EXAMPLE_FILE, EXAMPLE_FOLDER_ID)

That’s it

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

DevOps / SRE — Top Links Last Week

Three Developer Articles that Interested Me This Week — 05/23/2022

Swift vs Kotlin — The differences that matter

Digitize Documents in 2021: Go Touchless

Road TO Dev — How much ammo do I have?

Kubernetes the swiss army knife for microservices :introduction — Part-1

Testnet Launch Give-Away Program

Web3 is not about the tech. It’s about what it enables.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Brett Haranin

Brett Haranin

More from Medium

Add custom layer to AWS Lambda

Instantly update your Lambda functions (development)

Going Serverless

Analyzing Cold Starts on a NodeJS Lambda