-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: data "aws_workspaces_bundle" returns more than one result in 5.72.1 #39775
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.73.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.5.7
AWS Provider Version
5.72.1
Affected Resource(s)
data aws_workspaces_bundle {}
Expected Behavior
In 5.70.0 the following code returns one bundle ID.
Actual Behavior
In 5.72.1 the following (exactly the same code) returns an error indicating that more than one bundle has been returned, suggesting that further specificity is required to return a single bundle ID.
Relevant Error/Panic Output Snippet
data "aws_workspaces_bundle" "windows" {
owner = "AMAZON"
name = "Performance with Windows 10 and Office 2019 Pro Plus (Server 2019 based)"
}
{
"Bundles": [
{
"BundleId": "wsb-b9jc2fhhl",
"BundleType": "REGULAR",
"ComputeType": {
"Name": "PERFORMANCE"
},
"CreationTime": 1.559084907265E9,
"Description": "Windows 10 Experience provided by Windows Server 2016 with WorkSpaces Streaming Protocol 2 vCPU 7.5GiB Memory 100GB Storage (English)",
"LastUpdatedTime": 1.559084907265E9,
"Name": "Performance with Windows 10 (Server 2016 based)",
"Owner": "Amazon",
"RootStorage": {
"Capacity": "80"
},
"State": "AVAILABLE",
"UserStorage": {
"Capacity": "100"
}
},
{
"BundleId": "wsb-6cbvhvv9f",
"BundleType": "REGULAR",
"ComputeType": {
"Name": "STANDARD"
},
"CreationTime": 1.626920530503E9,
"Description": "Windows 10 Experience powered by Windows Server 2019 with WorkSpaces Streaming Protocol 2 vCPU 4GiB Memory 50GB Storage (English)",
"LastUpdatedTime": 1.626920530503E9,
"Name": "Standard with Windows 10 (Server 2019 based)",
"Owner": "Amazon",
"RootStorage": {
"Capacity": "80"
},
"State": "AVAILABLE",
"UserStorage": {
"Capacity": "50"
}
},
{
"BundleId": "wsb-0zsvgp8fc",
"BundleType": "REGULAR",
"ComputeType": {
"Name": "VALUE"
},
"CreationTime": 1.559084907402E9,
"Description": "Windows 10 Experience provided by Windows Server 2016 with Office 2016 and WorkSpaces Streaming Protocol 1 vCPU 2GiB Memory 10GB Storage (English)",
"LastUpdatedTime": 1.559084907402E9,
"Name": "Value with Windows 10 and Office 2016 Pro Plus (Server 2016 based)",
"Owner": "Amazon",
"RootStorage": {
"Capacity": "80"
},
"State": "AVAILABLE",
"UserStorage": {
"Capacity": "10"
}
}
]
}
2024-10-17T11:49:48.893-0400 [DEBUG] provider.terraform-provider-aws_v5.72.1_x5: HTTP Response Received: aws.region=us-east-1 http.response.body="{"Bundles":[{"BundleId":"wsb-b9jc2fhhl","BundleType":"REGULAR","ComputeType":{"Name":"PERFORMANCE"},"CreationTime":1.559084907265E9,"Description":"Windows 10 Experience provided by Windows Server 2016 with WorkSpaces Streaming Protocol 2 vCPU 7.5GiB Memory 100GB Storage (English)","LastUpdatedTime":1.559084907265E9,"Name":"Performance with Windows 10 (Server 2016 based)","Owner":"Amazon","RootStorage":{"Capacity":"80"},"State":"AVAILABLE","UserStorage":{"Capacity":"100"}},{"BundleId":"wsb-6cbvhvv9f","BundleType":"REGULAR","ComputeType":{"Name":"STANDARD"},"CreationTime":1.626920530503E9,"Description":"Windows 10 Experience powered by Windows Server 2019 with WorkSpaces Streaming Protocol 2 vCPU 4GiB Memory 50GB Storage (English)","LastUpdatedTime":1.626920530503E9,"Name":"Standard with Windows 10 (Server 2019 based)","Owner":"Amazon","RootStorage":{"Capacity":"80"},"State":"AVAILABLE","UserStorage":{"Capacity":"50"}},{"BundleId":"wsb-0zsvgp8fc","BundleType":"REGULAR","ComputeType":{"Name":"VALUE"},"CreationTime":1.559084907402E9,"Description":"Windows 10 Experience provided by Windows Server 2016 with Office 2016 and WorkSpaces Streaming Protocol 1 vCPU 2GiB Memory 10GB Storage (English)","LastUpdatedTime":1.559084907402E9,"Name":"Value with Windows 10 and Office 2016 Pro Plus (Server 2016 based)","Owner":"Amazon","RootStorage":{"Capacity":"80"},"State":"AVAILABLE","UserStorage":{"Capacity":"10"}}]}
" http.response.header.x_amzn_requestid=582e4e97-313d-420b-a9a9-0875fd96d76b http.response_content_length=1422 http.status_code=200 tf_aws.signing_region= tf_req_id=423b1ed0-6e6f-1c1d-12c1-1425be4f5c14 tf_rpc=ReadDataSource tf_aws.sdk=aws-sdk-go-v2 tf_mux_provider=*schema.GRPCProviderServer tf_provider_addr=registry.terraform.io/hashicorp/aws @module=aws http.response.header.date="Thu, 17 Oct 2024 15:49:48 GMT" rpc.method=DescribeWorkspaceBundles rpc.system=aws-api @caller=github.com/hashicorp/aws-sdk-go-base/[email protected]/logging/tf_logger.go:45 http.duration=51 http.response.header.content_type=application/x-amz-json-1.1 rpc.service=WorkSpaces tf_data_source_type=aws_workspaces_bundle timestamp=2024-10-17T11:49:48.892-0400
2024-10-17T11:49:48.893-0400 [ERROR] provider.terraform-provider-aws_v5.72.1_x5: Response contains error diagnostic: diagnostic_summary="multiple WorkSpaces Bundles matched; use additional constraints to reduce matches to a single WorkSpaces Bundle" tf_data_source_type=aws_workspaces_bundle tf_proto_version=5.6 tf_provider_addr=registry.terraform.io/hashicorp/aws tf_rpc=ReadDataSource @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail= diagnostic_severity=ERROR tf_req_id=423b1ed0-6e6f-1c1d-12c1-1425be4f5c14 timestamp=2024-10-17T11:49:48.893-0400
2024-10-17T11:49:48.893-0400 [ERROR] vertex "data.aws_workspaces_bundle.windows" error: multiple WorkSpaces Bundles matched; use additional constraints to reduce matches to a single WorkSpaces Bundle
2024-10-17T11:49:48.893-0400 [ERROR] vertex "data.aws_workspaces_bundle.windows (expand)" error: multiple WorkSpaces Bundles matched; use additional constraints to reduce matches to a single WorkSpaces Bundle
2024-10-17T11:49:48.900-0400 [INFO] backend/local: plan operation completed
The text was updated successfully, but these errors were encountered: