nimblehq / infrastructure-templates

For IaaS and PaaS as codes
MIT License
10 stars 0 forks source link

Fix: The tfsec fails due to aws-iam-no-policy-wildcards rule #207

Closed hoangmirs closed 1 year ago

hoangmirs commented 1 year ago

Issue

Expected

The error should not be shown

Steps to reproduce

  1. Create a new project from this template with Advanced template
  2. Run tfsec on the shared folder
  3. Observe the error
hoangmirs commented 1 year ago

@longnd As you added this feature, is this error expected? If yes, we can ignore it by using the following comment:

# tfsec:ignore:aws-iam-no-policy-wildcards
resource "aws_iam_group_policy" "developer_allow_manage_own_credentials" {
  group  = aws_iam_group.developer.name
  policy = local.allow_manage_own_credentials
}