Skip to content

Instantly share code, notes, and snippets.

@paulanunda
Last active August 29, 2015 14:06
Show Gist options
  • Save paulanunda/014c2bc225b86787128b to your computer and use it in GitHub Desktop.
Save paulanunda/014c2bc225b86787128b to your computer and use it in GitHub Desktop.
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