[Bug]: data "aws_workspaces_bundle" returns more than one result in 5.72.1 #39775
Labels
bug
Addresses a defect in current functionality.
regression
Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
service/workspaces
Issues and PRs that pertain to the workspaces service.
Milestone
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/v2@v2.0.0-beta.58/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/terraform-plugin-go@v0.24.0/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: