Replies: 1 comment
-
I like it, these are called "heredocs" https://www.terraform.io/docs/configuration/expressions.html#literal-expressions I think users are better off if TFLint tracks the AWS resources that accept policy documents, and then perhaps you could specify additional ones for newly released AWS resources that aren't tracked here. There are plenty of resources outside of the core IAM ones that accept policies, e.g. S3 bucket policies, KMS keys, and VPC endpoints. It might work to enforce this logic on any attribute that is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the resource
aws_iam_role
, I can create a role usingor I can create one using the data source aws_iam_policy_document. I'd prefer using the data source because it's a lot cleaner and less error prone than using JSON.
Rule definition
Beta Was this translation helpful? Give feedback.
All reactions