Use this data source to get information about a workspace in AWS Workspaces Service.
data "aws_workspaces_workspace" "example" {
workspace_id = "ws-cj5xcxsz5"
}
data "aws_workspaces_workspace" "example" {
directory_id = "d-9967252f57"
user_name = "Example"
}
This data source supports the following arguments:
bundle_id
- (Optional) ID of the bundle for the WorkSpace.directory_id
- (Optional) ID of the directory for the WorkSpace. You have to specify user_name
along with directory_id
. You cannot combine this parameter with workspace_id
.root_volume_encryption_enabled
- (Optional) Indicates whether the data stored on the root volume is encrypted.tags
- (Optional) Tags for the WorkSpace.user_name
– (Optional) User name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace. You cannot combine this parameter with workspace_id
.user_volume_encryption_enabled
– (Optional) Indicates whether the data stored on the user volume is encrypted.volume_encryption_key
– (Optional) Symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.workspace_id
- (Optional) ID of the WorkSpace. You cannot combine this parameter with directory_id
.workspace_properties
– (Optional) WorkSpace properties.workspace_properties
supports the following:
compute_type_name
– (Optional) Compute type. For more information, see Amazon WorkSpaces Bundles. Valid values are VALUE
, STANDARD
, PERFORMANCE
, POWER
, GRAPHICS
, POWERPRO
and GRAPHICSPRO
.root_volume_size_gib
– (Optional) Size of the root volume.running_mode
– (Optional) Running mode. For more information, see Manage the WorkSpace Running Mode. Valid values are AUTO_STOP
and ALWAYS_ON
.running_mode_auto_stop_timeout_in_minutes
– (Optional) Time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.user_volume_size_gib
– (Optional) Size of the user storage.This data source exports the following attributes in addition to the arguments above:
id
- Workspaces ID.ip_address
- IP address of the WorkSpace.computer_name
- Name of the WorkSpace, as seen by the operating system.state
- Operational state of the WorkSpace.