xpanse
xpanse copied to clipboard
extend tofu-maker to support multiple versions of terraform
- [ ] Extend all request body with 'opentofu_version' field.
- [ ] The version can be a specific version, greater than or equal to, lesser than equal to. Based on that use whatever terraform installation is available that fits the requirement.
- [ ] all terraform commands must be extended with the version name. example
opentofu-1.7 apply
- [ ] if no binary with this name is not found, assume the terraform is not installed, and try to install it. Note -> if it is running in a docker container, then it is installed within the docker container.
- [ ] Installation path, download base URL must be configurable.
- [ ] Dynamically build download the file name based on the version, OS name and the processor architecture.
- [ ] If the installation fails, then return an exception with all information in the webhook response.
Depends on #1939 . To be implemented after this is done.