my-module/
├── README.md
├── LICENSE
├── main.tf
├── variables.tf
├── outputs.tf
├── modules/
│ └── nested/
└── examples/
└── basic/
./modules/nested.source uses the address an external caller would use.Since OpenTofu 1.8, variables and locals can be used in backend configuration and module sources, which removes a lot of repeated boilerplate per environment.
Examples use OpenTofu (tofu); in Terraform the commands start with terraform. Check the documentation for your version before relying on a feature.
Tell us what you are trying to fix. No preparation needed.