Articles → AWS → Upload A File In AWS Glacier Using CLI

Upload A File In AWS Glacier Using CLI






Purpose





Vault





How To Create A Vault Using CLI?




aws glacier create-vault --account-id - --vault-name my-customers-vault




Picture showing the output of how to create a vault in Glacier using CLI
Click to Enlarge

Picture showing the vault created in AWS S3 glacier
Click to Enlarge


How To Get The List Of Vault In CLI?




aws glacier list-vaults --account-id -


Picture showing the output of how to get the list of vault using CLI
Click to Enlarge


How To Upload A File In Vault Using CLI?




aws glacier upload-archive --account-id - --vault-name my-customers-vault --body test.jpg




Picture showing the output of how to upload a file in the vault using CLI
Click to Enlarge


How To Delete Archive From Vault Using CLI?




aws glacier delete-archive --vault-name <Your Vault Name> --account-id <Your account Id> --archive-id=<Your Archive Id>



How To Delete A Vault Using CLI?




aws glacier delete-vault --vault-name my-customers-vault --account-id -





Posted By  -  Karan Gupta
 
Posted On  -  Thursday, July 14, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250