aws_ssm_patch_group - provider produced an unexpected new value for was present, but now absent. #13580
Labels
bug
Addresses a defect in current functionality.
service/ssm
Issues and PRs that pertain to the ssm service.
Milestone
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Resource aws_ssm_patch_group should be paginating the results and shouldn't be removing items from the state and be re-creating items that arleady exist
Actual Behavior
resource aws_ssm_patch_group appears to not be paginating the results when it runs DescribePatchGroups so if you have a certain number of patch groups that exceed the first page terraform will think the item doesn't exist in AWS and consequently remove the item from the the state and want to re-create the item but fails with the following since it already exists
Steps to Reproduce
terraform apply
run create a large number of patch groups that exceed the first page of results returned from the API (Should be 50+ patch groups)terraform apply
a second time and terraform will want to re-create the patch groups that were not displayed on the first page of the returned results from the API when it runs DescribePatchGroupsThe text was updated successfully, but these errors were encountered: