Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sqs-encrypted-extended-client, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sqs_encrypted_extended_client-0.0.2-py2.py3-none-any.whl (7.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sqs-encrypted-extended-client-0.0.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page