dcloud s3 bucket-encryption setMove the bucket to a KMS key, or back to the platform key
IAM s3:PutEncryptionConfigurationChanges state
Re-wraps the bucket’s one data key: every object, old and new, follows the new key at once. Disabling or deleting that KMS key makes the objects unreadable until it is enabled again (deleted: for good). Needs kms:Encrypt on the key. Also over S3: PutBucketEncryption.
Synopsis
dcloud s3 bucket-encryption set name --kms-key-id kmsKeyIdArguments
<name>Requiredstring
Also accepted as
--name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Flags
--kms-key-idRequiredstring
A KMS key of the organization (SSE-KMS), or null for the platform key (SSE-S3)
May be null.
Example
dcloud s3 bucket-encryption set name --kms-key-id exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.