-
Notifications
You must be signed in to change notification settings - Fork 0
Data access instructions from S3 using AWS CLI
- Install AWS CLI
- Configure
- List objects in the S3 bucket
- Download an object from the S3 bucket to home directory
Download the AWS CLI installer for Windows from the official AWS CLI website: AWS CLI install and update instructions - Windows
Run the downloaded installer and follow the installation wizard.
The installation method may vary depending on your Linux distribution. Here are commands for some popular package managers:
For Debian/Ubuntu: sudo apt-get update sudo apt-get install awscli
For Red Hat/Fedora: sudo yum install aws-cli
For other distributions or to install using Python pip
, you can follow the instructions on the official AWS CLI website: AWS CLI install and update instructions - Linux
You can install the AWS CLI on macOS using the Homebrew package manager. Open the Terminal and run the following commands:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install awscli
Alternatively, you can install it using Python pip:
sudo pip3 install awscli
aws configure
- Enter the provided access key when prompted.
- Enter the provided secret key when prompted.
- Enter default region → eu-west-2.
- Enter data format → json.
- Test ->
aws s3 ls s3://morphic-bio-data-release
. This command lists the content of the S3 buckets you have access to, helping confirm that your AWS CLI setup is working.
aws s3 ls s3://morphic-bio-data-release
Syntax:
aws s3 cp <s3_source_folder> <local_target_folder>
Example command:
aws s3 cp s3://morphic-bio-data-release/December-2023/JAX_RNAseq_ExtraEmbryonic/source/WT_3__Normoxia_GT23-11290_GGACTTGG-CGTCTGCG_S36_L001_R2_001.fastq.gz ./mnt/c/users/User