You can use input variables to customize your Terraform configuration with values that can be assigned by end users of your configuration. Input variables allow users to re-use and customize configuration by providing a consistent interface to change how a given configuration behaves.
Follow along with this tutorial on HashiCorp Learn.