Skip to content

Commit 3665fd7

Browse files
authored
Merge pull request #35881 from dthvt/workspaces-kms
Update Workspaces KMS documentation.
2 parents eb21c1d + b7f3c6a commit 3665fd7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

website/docs/r/workspaces_workspace.html.markdown

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ data "aws_workspaces_bundle" "value_windows_10" {
1919
bundle_id = "wsb-bh8rsxt14" # Value with Windows 10 (English)
2020
}
2121
22+
data "aws_kms_key" "workspaces" {
23+
key_id = "alias/aws/workspaces"
24+
}
25+
2226
resource "aws_workspaces_workspace" "example" {
2327
directory_id = aws_workspaces_directory.example.id
2428
bundle_id = data.aws_workspaces_bundle.value_windows_10.id
2529
user_name = "john.doe"
2630
2731
root_volume_encryption_enabled = true
2832
user_volume_encryption_enabled = true
29-
volume_encryption_key = "alias/aws/workspaces"
33+
volume_encryption_key = data.aws_kms_key.workspaces.arn
3034
3135
workspace_properties {
3236
compute_type_name = "VALUE"
@@ -51,7 +55,7 @@ This resource supports the following arguments:
5155
* `user_name` – (Required) The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
5256
* `root_volume_encryption_enabled` - (Optional) Indicates whether the data stored on the root volume is encrypted.
5357
* `user_volume_encryption_enabled` – (Optional) Indicates whether the data stored on the user volume is encrypted.
54-
* `volume_encryption_key` – (Optional) The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
58+
* `volume_encryption_key` – (Optional) The ARN of a symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
5559
* `tags` - (Optional) The tags for the WorkSpace. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
5660
* `workspace_properties` – (Optional) The WorkSpace properties.
5761

0 commit comments

Comments
 (0)