github.com/wata727/tflint@v0.12.2-0.20191013070026-96dd0d36f385/docs/rules/aws_db_instance_default_parameter_group.md (about)

     1  # aws_db_instance_default_parameter_group
     2  
     3  Disallow using default DB parameter group.
     4  
     5  ## Example
     6  
     7  ```hcl
     8  resource "aws_db_instance" "mysql" {
     9    identifier             = "app"
    10    allocated_storage      = 50
    11    storage_type           = "gp2"
    12    engine                 = "mysql"
    13    engine_version         = "5.7.11"
    14    instance_class         = "db.m4.large"
    15    name                   = "app_db"
    16    port                   = 3306
    17    publicly_accessible    = false
    18    vpc_security_group_ids = ["${aws_security_group.mysql.id}"]
    19    db_subnet_group_name   = "app-subnet-group"
    20    parameter_group_name   = "default.mysql5.7" // default DB parameter group!
    21    multi_az               = true
    22  }
    23  ```
    24  
    25  ```
    26  $ tflint
    27  1 issue(s) found:
    28  
    29  Notice: "default.mysql5.7" is default parameter group. You cannot edit it. (aws_db_instance_default_parameter_group)
    30  
    31    on template.tf line 13:
    32    13:   parameter_group_name   = "default.mysql5.7" // default DB parameter group!
    33  
    34  Reference: https://github.com/wata727/tflint/blob/v0.11.0/docs/rules/aws_db_instance_default_parameter_group.md
    35   
    36  ```
    37  
    38  ## Why
    39  
    40  You can modify parameter values in a custom DB parameter group, but you can't change the parameter values in a default DB parameter group.
    41  
    42  ## How To Fix
    43  
    44  Create a new parameter group, and change the `parameter_group_name` to that.