A little hand-wavy but here it is: some resources are marked with a Generator tag indicating how they were created. Obvious values: Terraform, Serverless.
If a resource has this tag, then it shouldn't be modifiable unless the modifying principal has a "matching tag" (which may not make sense within the principal context, but find a way).
This means Terraform-created resources can only be altered by Terraform and so on. Ideally this is an Organization-wide policy that never changes, and you make it work by assigning appropriate tags.
A little hand-wavy but here it is: some resources are marked with a Generator tag indicating how they were created. Obvious values: Terraform, Serverless.
If a resource has this tag, then it shouldn't be modifiable unless the modifying principal has a "matching tag" (which may not make sense within the principal context, but find a way).
This means Terraform-created resources can only be altered by Terraform and so on. Ideally this is an Organization-wide policy that never changes, and you make it work by assigning appropriate tags.