Reputation: 185
I've investigated all AWS SNS PowerShell Cmdlets that would retrieve whether an SNS topic is encrypted or not, but I can see any of the attributes retrieved from
Get-SNSTopicAttribute
relates to the encryption configuration of the topic. Is there a workaround for that?
Upvotes: 0
Views: 164
Reputation: 8152
The workaround is to check if the response includes KmsMasterKeyId
property. Since, You must enter a valid CMK ARN.
For instance:
Note that when the SNS is not encrypted the KmsMasterKeyId
property is missing.
Upvotes: 1