iasql
iasql copied to clipboard
Research How Terraform is Handling JSON Policies
We can check how Terraform or other IaC apps are detecting the changes in JSON Policies and how are they checking if two policies are the same thing. We can read their codes to gain an understanding of their logic.
OK seems this issue with the AWS API has been known. Terraform has these checks for it:
The overall logic can be translated to TypeScript and I think this can help us find a way to handle it properly. I'll put the steps it's taking here.
Examples of our current ad-hoc handling of this issue are: