Link Search Menu Expand Document

A resource is marked as publicly accessible.

Explanation

Database resources should not publicly available. You should limit all access to the minimum that is required for your application to function.

Insecure Example

The following example will fail the AWS011 check.

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

Secure Example

The following example will pass the AWS011 check.

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