Last active
August 29, 2015 14:06
-
-
Save paulanunda/014c2bc225b86787128b 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
require 'aws-sdk'; AWS.config(access_key_id: '...', secret_access_key: '...', region: 'us-east-1') | |
############################################################ | |
# glacier | |
############################################################ | |
# https://forums.aws.amazon.com/message.jspa?messageID=508743 | |
glacier = AWS.glacier | |
glacier.vaults | |
vc = AWS::Glacier::VaultCollection.new | |
# create a job | |
resp = glacier.client.initiate_job account_id: '-', vault_name: '...', job_parameters: { type: 'inventory-retrieval', format: 'JSON' } | |
# list all jobs | |
glacier.client.list_jobs account_id: '-', vault_name: '...' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment