Last active
August 25, 2020 19:07
-
-
Save al102964/418074253feb52689b2714c1e426de9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
#Llaves de acceso a bucket de trabajo | |
ACCESS_KEY = "LLAVE" | |
SECRET_KEY = "SECRET" | |
AWS_BUCKET_NAME = "al102964-iot-data" | |
ENCODED_SECRET_KEY = urllib.parse.quote(SECRET_KEY,"") | |
MOUNT_NAME = "s3data" | |
dbutils.fs.mount("s3n://%s:%s@%s" % (ACCESS_KEY,ENCODED_SECRET_KEY,AWS_BUCKET_NAME),"/mnt/%s" %MOUNT_NAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment