Skip to content

Enable Ebs Encryption by Default

ec2_enable_ebs_encryption_by_default R Documentation

Enables EBS encryption by default for your account in the current Region

Description

Enables EBS encryption by default for your account in the current Region.

After you enable encryption by default, the EBS volumes that you create are always encrypted, either using the default KMS key or the KMS key that you specified when you created each volume. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

You can specify the default KMS key for encryption by default using modify_ebs_default_kms_key_id or reset_ebs_default_kms_key_id.

Enabling encryption by default has no effect on the encryption status of your existing volumes.

After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported instance types.

Usage

ec2_enable_ebs_encryption_by_default(DryRun)

Arguments

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  EbsEncryptionByDefault = TRUE|FALSE
)

Request syntax

svc$enable_ebs_encryption_by_default(
  DryRun = TRUE|FALSE
)