Allows for per-queue KMS encryption of large messages in S3
Project description
sqs-encrypted-extended-client
Extends sqs-extended-client adding per queue KMS encryption for S3 objects
Installation
pip install sqs-encrypted-extended-client
Overview
sqs-encrypted-extended-client allows for Server-Side KMS encryption of S3 objects created by sqs-extended-client on a global or per-queue basis.
Usage
All usage for sqs-extended-client, with the additional following use-cases.
Enabling default KMS key encryption for all queues or for unmatched queues
import boto3
import sqs_extended_client
sqs = boto3.client('sqs')
sqs.large_payload_support = 'my-bucket-name'
sqs.default_kms_key_id = 'alias/my-key'
Arguments:
- large_payload_support -- the S3 bucket name that will store large messages.
- default_kms_key_id -- the KMS Key Id to use when there are no matching queues. Can be a key alias (recommended), key id, or key arn.
Enabling support for a particular queue
import boto3
import sqs_extended_client
sqs = boto3.client('sqs')
sqs.large_payload_support = 'my-bucket-name'
sqs.add_kms_key_id('https://my-queue-url', 'alias/my-key')
Enabling support for a number of queues at once
import boto3
import sqs_extended_client
sqs = boto3.client('sqs')
sqs.large_payload_support = 'my-bucket-name'
sqs.kms_key_ids = {
'https://my-queue-1-url': 'alias/my-key-1',
'https://my-queue-2-url': 'alias/my-key-2',
...
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sqs-encrypted-extended-client-0.0.2.tar.gz
.
File metadata
- Download URL: sqs-encrypted-extended-client-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4fd95ef296c7e9dc566bdeb1ac61d04a9acf9583fa90d444ce3142998f5932d |
|
MD5 | a5897a7a075c49ffd8c236c0aeacfd13 |
|
BLAKE2b-256 | 532053189e4cf8d0ff5b5fad16484a92d55bbe91fc3f00da2d1fb29fb8c639c9 |
File details
Details for the file sqs_encrypted_extended_client-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: sqs_encrypted_extended_client-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4359404892db02a524a3106fc12f1f433367fba5d22c0460dee4a15bfabfb0c |
|
MD5 | 396232d27ea26b2ee09ef8fcfe997be0 |
|
BLAKE2b-256 | 52c1962b7aa5d9c953abbb7dc120a29afb128242de8ebf657a0f207f4d203348 |