Skip to content
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

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

Closed
hoangmirs opened this issue Aug 29, 2023 · 1 comment · Fixed by #210
Closed

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

hoangmirs opened this issue Aug 29, 2023 · 1 comment · Fixed by #210
Labels
type : bug Something isn't working

Comments

@hoangmirs
Copy link
Collaborator

Issue

  • When generating a new project with an Advanced template that includes IAM resources, the following error was thrown by tfsec:
    image

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 hoangmirs added the type : bug Something isn't working label Aug 29, 2023
@hoangmirs
Copy link
Collaborator Author

@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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type : bug Something isn't working
Projects
None yet
1 participant