-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rules to check for a Resource wildcard in a policy #133
Comments
We might want to considering failing if these resources are using inline rather than a policy document. |
The Terraform documentation recommends using an aws_iam_policy_document data source for several good reasons:
https://learn.hashicorp.com/terraform/aws/iam-policy#choosing-a-configuration-method |
Need rules for these resources (KMS #96 & Elasticsearch #95 are covered in other issues). media_store_container_policy - https://www.terraform.io/docs/providers/aws/r/media_store_container_policy.html#policy ses_identity_policy - https://www.terraform.io/docs/providers/aws/r/ses_identity_policy.html#policy sns_topic - https://www.terraform.io/docs/providers/aws/r/sns_topic.html#policy sqs_queue - https://www.terraform.io/docs/providers/aws/r/sqs_queue.html#policy cloudwatch_log_destination_policy - https://www.terraform.io/docs/providers/aws/r/cloudwatch_log_destination_policy.html#access_policy ecr_repository_policy - https://www.terraform.io/docs/providers/aws/r/ecr_repository_policy.html#policy iot_policy - https://www.terraform.io/docs/providers/aws/r/iot_policy.html#policy |
This should apply for any policy type, just make sure that all resource types are covered.
For example:
aws_sqs_queue_policy
aws_sns_topic_policy
The text was updated successfully, but these errors were encountered: