A module is a container for multiple resources that are used together. Every Terraform configuration has at least one module, known as the root module. A module consists of a collection of .tf and/or .tf.json files kept together in a directory.