r/aws_cloudwatch_event_target - http_target path_parameter_values are treated as a set and not a list #22929
Labels
bug
Addresses a defect in current functionality.
service/events
Issues and PRs that pertain to the events service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
terraform: 1.1.2
hashicorp/aws: v3.74.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
When http path parameters are used for the aws_cloudwatch_event_target resource they should be treated as an ordered list.
Actual Behavior
The http path parameters are treated as an unordered set which causes duplicate values to be removed and value ordering to be arbitrary. In the example provided there should be a list of two path parameters (params and params). However, the resource is only built with one because a set cannot have duplicate values. Additionally the order specified by the terraform configuration may be changed based upon the internal implementation of the set.
Steps to Reproduce
terraform apply
Note
The schema here shows the path parameters defined as a TypeSet instead of a TypeList:
terraform-provider-aws/internal/service/events/target.go
Line 128 in 49748fb
The text was updated successfully, but these errors were encountered: