简体   繁体   中英

Check If SQS and Lambda is encrypted using boto3

Iam very new to AWS and I want to check whether SQS and Lambda is encrypted or not using boto3. I tried searching documentation but didnt find anything. Any suggestions on how to achieve this?

SQS

Call client.get_queue_attributes and look at KmsMasterKeyId and KmsDataKeyReusePeriodSeconds

If those are not empty --> queue is encrypted

See https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs.html#SQS.Client.get_queue_attributes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM