I'm having a strange issue where ARNs get changed at some point. This is happening for both a bucket policy and KMS key policy.
In the policy document, I specify Role ARNs in an external account:
...
principals {
type = "AWS"
identifiers = var.list_of_arns
}
...
The terraform plan output looks normal:
Principal = {
AWS = [
"arn:aws:iam::account-id:role/role1",
"arn:aws:iam::account-id:role/role2",
]
}
However, the actual resources that get created are different.
{
"Statement": [
...
"Principal": {
"AWS": [
"SOMESTRINGOF21CHARS",
"OTHERSTRINGOF21CHARS"
]
}
..
}
Why is this happening?
Thanks