Policy documents and other lists causing drift #20781
Labels
bug
Addresses a defect in current functionality.
service/iam
Issues and PRs that pertain to the iam service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
etc
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Every 2 hours or so, our ci system runs terraform plan, and if it outputs any planned changes, marks that as drift.
Every time we get random false-positive drift like the below, where the only thing being changed is the list of AWS principals being re-arranged
I did some digging, and finds out aws api returns those lists unsorted, so if you do the same api request twice, that list will be in a random order each time;
The text was updated successfully, but these errors were encountered: