Coder Social home page Coder Social logo

s3-bigdata-kms-encryption-upload's Introduction

Encryption using AWS SDK + Big data upload to S3

Encryption using AWS KMS (/encryption)

Introduction

https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/introduction.html

How AWS SDK encryption works:

https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/how-it-works.html

Encrypt data:

python encrypt.py <KEY_ARN> <PLAIN_FILE> <ENCRYPTED_FILE>

Decrypt data:

$ python decrypt.py <KEY_ARN> <ENCRYPTED_FILE> <DECRYPTED_FILE>

Comparing files after decryption

cmp --silent <PLAIN_FILE> <DECRYPTED_FILE> && echo '### SUCCESS: Files Are Identical! ###' || echo '### WARNING: Files Are Different! ###'
### SUCCESS: Files Are Identical! ###

Secure S3 bucket creation (/secure_bucket_creation)

Details: If

Command: python create_restricted_bucket.py account_id s3_user region bucket_name ip_range

S3 Big data upload (s3_big_data_upload)

Prepare + Split files

Using linux split command: split -b 5000k --numeric-suffixes <BIG_FILE> <PREFIX>

Example: split -b 5000k --numeric-suffixes FILE.txt segment-

Upload to S3 in parallel

Permissions: chmod +x s3_upload.sh

Upload in parallel processes to S3: s3_upload.sh <FULL_PATH_TO_FOLDER> <S3_BUCKET_NAME> <N_PROCESSES>

References:

Encryption: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html Allow by IP: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_aws_deny-ip.html

Uploading multiple files to AWS S3 in parallel: https://netdevops.me/2018/uploading-multiple-files-to-aws-s3-in-parallel/ https://aws.amazon.com/blogs/apn/getting-the-most-out-of-the-amazon-s3-cli/

Other tools: https://s3tools.org/usage http://s3browser.com/

s3-bigdata-kms-encryption-upload's People

Contributors

thiagodiogo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.