Invalid partition. The resource ARN for the service does not support the partition.
In AWS Console -
In Terraform -
References:
https://docs.aws.amazon.com/IAM/latest/UserGuide/service_code_examples_iam.html
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy