- Serving private content with signed URLs and signed cookies
- Create a key pair for a trusted key group
| #!/bin/bash | |
| bucket=$1 | |
| set -e | |
| echo "Removing all versions from $bucket" | |
| versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions | .[] | select(.IsLatest | not)'` | |
| markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
| import logging | |
| import boto3 | |
| from botocore.exceptions import ClientError | |
| def upload_archive(vault_name, src_data): | |
| """Agrega un archivo a una bodega de Amazon Glacier . | |
| La carga se produce de forma sincrónica. | |
| :param vault_name: string |
| # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| # | |
| # This file is licensed under the Apache License, Version 2.0 (the "License"). | |
| # You may not use this file except in compliance with the License. A copy of the | |
| # License is located at | |
| # | |
| # http://aws.amazon.com/apache2.0/ | |
| # | |
| # This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | |
| # OF ANY KIND, either express or implied. See the License for the specific |
| import json | |
| import logging | |
| import boto3 | |
| from botocore.exceptions import ClientError | |
| def retrieve_inventory_results(vault_name, job_id): | |
| """Retrieve the results of an Amazon Glacier inventory-retrieval job | |
| :param vault_name: string | |
| :param job_id: string. The job ID was returned by Glacier.Client.initiate_job() |