AWS S3 Quick Reference Guide

Below is a list of AWS S3 commands that are useful for the PCORNet projects that use AWS s3:

Setup Commands

  • aws configure --profile <<profile>>
    • Use this command when refreshing the AWS keys for STAR and RECOVER
    • aws configure --profile star
    • aws configure --profile recover
  • aws configure list-profiles
  • aws configure list --profile <<profile>>

Query Commands

  • aws s3 ls s3://<<bucketName>> --profile <<profile>>

Write Commands

  • aws s3 cp <<localFile>> s3://<<bucketName>> --profile <<profile>>