You should limit the provision of public IP addresses for resources.
Resources should not be exposed on the public internet, but should have access limited to consumers required for the function of your application.
resource "aws_launch_configuration" "my-resource" {
associate_public_ip_address = true
}
resource "aws_launch_configuration" "my-resource" {
associate_public_ip_address = false
}