Terraform

Terraform

Made by DeepSource

AWS Classic resource usage TF-AWS003

Security
Major

AWS Classic resources run in a shared environment with infrastructure owned by other AWS customers.

You should run resources in a VPC instead. In this, your instances run in a virtual private cloud (VPC) that's logically isolated to your AWS account, enhancing the security of your cloud-native infrastructure.

Examples

Bad practice

resource "aws_db_security_group" "my-group" {
  # ...
}

Recommended

resource "aws_security_group" "allow-db-access" {
  # ...
}

References