Terraform

Terraform

Made by DeepSource

A resource is marked as publicly accessible TF-AWS011

Security
Critical

Database resources should not publicly available.

You should limit all access to the minimum that is required for your application to function. It is recommended to specify the publicly_accessible attribute parameter as false.

Examples

Bad practice

resource "aws_db_instance" "my-resource" {
    publicly_accessible = true
}

Recommended

resource "aws_db_instance" "my-resource" {
    publicly_accessible = false
}

References