Skip to content

Conversation

kuredev
Copy link
Contributor

@kuredev kuredev commented Oct 18, 2025

Description

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/workspaces_workspace

In the aws_workspaces_workspace data source, several fields defined as arguments currently either cause errors or are ignored when specified.
Based on verification, these fields appear to function as attributes rather than arguments.
The following table summarizes the observed behavior for each field.

Verified with Terraform Provider version 6.17.0.

Argument-to-Attribute Changes

Attribute Name Changed (Arg → Attr) Notes
region
bundle_id Causes error if used as argument
directory_id
root_volume_encryption_enabled Causes error if used as argument
tags Argument input is ignored
user_name
user_volume_encryption_enabled Causes error if used as argument
volume_encryption_key Causes error if used as argument
workspace_id
workspace_properties Causes error if used as argument
compute_type_name Inside workspace_properties
root_volume_size_gib Inside workspace_properties
running_mode Inside workspace_properties
running_mode_auto_stop_timeout_in_minutes Inside workspace_properties
user_volume_size_gib Inside workspace_properties
id
ip_address
compute_name
state

Reproduction Steps

Steps to reproduce for fields that cause an error when used as arguments (e.g. bundle_id)

main.tf

data "aws_workspaces_workspace" "ws1" {
  workspace_id = "ws-xxxxxxxxx"
  bundle_id = "wsb-xxxxxxxxx"
}

output "ws1" {
  value = data.aws_workspaces_workspace.ws1
}

CLI

$ terraform apply                                                                                                   
╷
│ Error: Value for unconfigurable attribute
│ 
│   with data.aws_workspaces_workspace.w,
│   on main.tf line 19, in data "aws_workspaces_workspace" "ws1":
│   19:   bundle_id = "wsb-xxxxxxxxx"
│ 
│ Can't configure a value for "bundle_id": its value will be decided automatically based on the result of applying this
│ configuration.

References

#14135
https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/workspaces/workspace_data_source.go

Copy link
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. service/workspaces Issues and PRs that pertain to the workspaces service. size/M Managed by automation to categorize the size of a PR. labels Oct 18, 2025
@kuredev kuredev changed the title docs: update some attributes from "Argument Reference" to "Attribute … docs: [data source: aws_workspaces_workspace] update some attributes from "Argument Reference" to "Attribute Reference" Oct 18, 2025
@kuredev kuredev changed the title docs: [data source: aws_workspaces_workspace] update some attributes from "Argument Reference" to "Attribute Reference" docs: [aws_workspaces_workspace] update some attributes from "Argument Reference" to "Attribute Reference" Oct 18, 2025
@kuredev kuredev marked this pull request as ready for review October 18, 2025 11:56
@kuredev kuredev requested a review from a team as a code owner October 18, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. needs-triage Waiting for first response or review from a maintainer. service/workspaces Issues and PRs that pertain to the workspaces service. size/M Managed by automation to categorize the size of a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant