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

tfignore is not considered [aws-rds-enable-iam-auth] #8016

Closed
2 tasks done
tb102122 opened this issue Nov 29, 2024 Discussed in #8015 · 1 comment
Closed
2 tasks done

tfignore is not considered [aws-rds-enable-iam-auth] #8016

tb102122 opened this issue Nov 29, 2024 Discussed in #8015 · 1 comment

Comments

@tb102122
Copy link

Discussed in #8015

Originally posted by tb102122 November 29, 2024

Description

The tfsecc:ignore flag is ignored.
[aws-rds-enable-iam-auth][MEDIUM] - Instance does not have IAM Authentication enabled

Desired Behavior

tfsec runs successful

Actual Behavior

tfsec fails with warning

Reproduction Steps

1. run the below tf code

# tfsec:ignore:aws-rds-enable-iam-auth
module "db" {
  source  = "terraform-aws-modules/rds/aws"
  version = "~> 6"

  identifier = var.name
  db_name    = var.odoo_db_name
  username   = var.db_root_username
  tags       = var.tags

  instance_use_identifier_prefix = false
  create_db_option_group         = false
  create_db_parameter_group      = false

  engine         = "postgres"
  engine_version = var.postgres_version

  instance_class        = var.db_instance_type
  allocated_storage     = var.db_size
  max_allocated_storage = var.db_max_size

  port                   = var.db_port
  db_subnet_group_name   = var.database_subnet_group
  vpc_security_group_ids = [module.db_security_group.security_group_id]

  skip_final_snapshot     = true
  backup_window           = var.db_backup_window
  backup_retention_period = var.backup_retention_period
  copy_tags_to_snapshot   = true
  deletion_protection     = true

  performance_insights_enabled          = true
  performance_insights_retention_period = 31

}


### Target

AWS

### Scanner

Misconfiguration

### Output Format

None

### Mode

Standalone

### Debug Output

```bash
n/a

Operating System

linux_amd64

Version

Terraform v1.9.7 
tfsec v1.28.11
tflint version 0.54.0

Checklist

Copy link

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant