Terraform port variable validation failure

terraform plan rejects the input port=80.

Problem

terraform plan rejects the input port=80.

Cause

The lab module's variable validation rule rejects that value.

Solution

Inspect the variable rule and supply an allowed port. Run validation, generate a new plan, and review it.

terraform validate

View solution source on GitHub