Discover Default EBS Encryption

Discover the default EBS encryption settings for a region.

Source codePermissions

Usage

Input

Parameter Description Type Required Default value
region Region for operation. Leave blank for session default string No Session Default
debug Increase log verbosity bool No False
silent Decrease log verbosity bool No False
output Output format
table
string No None
session Established session object No None

Output

Returns a dictionary with keys:

{
    "enabled": True | False,
    "kms_key_id": "arn:aws:kms:us-west-2:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab"
}

Examples

Discover default EBS encryption setting for eu-west-2:

aaws ec2 discover_default_ebs_encryption --region eu-west-2