The example below will import an AWS instance into a terraform module:
When the source of a module is a version control repository or archive file (generically, a “package”), the module itself may be in a sub-directory relative to the root of the package. A special double-slash syntax is interpreted by Terraform to indicate that the remaining path after that point is a sub-directory within the package. […]
Solution for nginx Just load your nginx.conf and add client_max_body_size 50m; ( changing the value to your needs ) in the http, server orlocation block. Reload nginx to accept the new config by executing sudo service nginx reload and try again to push your commit over http.