Eventual consistency for aws_iam_role_policy

Hi folks,

We’re struggling to wait for eventual consistency of AWS inline role policies that are used in the same template. Terraform resources that depend on a role policy being created, fail creation/updating when we first create or update the role policy. So we have to re-apply the same template a second time, after waiting ~1-2 min for policy propagation.

Is it possible to somehow wait for policy propagation before creating resources that depend on it? A simple depends_on (and even max_retries in the provider settings) doesn’t seem to solve it…


Hello @dinvlad,

Do you have any examples or demo code for this use case? My initial reaction was to say exactly that (depends_on) and I’d like to see your use case and get a sense of why that isn’t working.

Hope you’re doing well!


Taylor Dolezal