Open jcollado opened 2 years ago
Hi @jcollado thanks for this. I'll try to reproduce with the terraform you provided and fix that. We probably do not support these of inline declaration for role policy but I need to make sure of that and check if there is an easy fix.
Description
AWS IAM role inline policies reported as not covered by IaC, but they are in both the code and the terraform state file. Possibly related to #892.
Environment
How to reproduce
Define an
aws_iam_role
resource. For example the one used to executedriftctl
itself inCodeBuild
:Run driftctl and get an output similar to this one:
Possible Solution
Additional context
In the terraform state file I can see that the inline policies are present, so they shouldn't be considred as infrastructure drift: