Managing Terraform Modules
Edit Terraform Module
Any Terraform module configured in Bunnyshell can be modified. If you choose to edit a module, you will be taken through all the steps from the initial configuration, meaning you can edit its name and description, its source, the input and environment variables and the output values.
To edit a Terraform module:
1. Click on the project name in the upper-right corner of the Bunnyshell interface.
2. Select View all projects.

3. Select a project, then click the Terraform modules button on the left side.
5. Click the Options button corresponding to your module and select Edit.
Clone Terraform Module
1. Click on the project name in the upper-right corner of the Bunnyshell interface.
2. Select View all projects.
3. Click the Settings button of the desired project..
4. From the left-side menu, select Terraform modules.
5. Click the Options button corresponding to your module and select Clone.
Delete Terraform Module
1. Click on the project name in the upper-right corner of the Bunnyshell interface.
2. Select View all projects.
3. Click the Settings button of the desired project..
4. From the left-side menu, select Terraform modules.
5. Click the Options button corresponding to your module and select Delete.
A Terraform module that is attached to an environment cannot be deleted. You first have to detach the module, then you can delete it.
Detach Terraform Module
1. Select the environment where the module is attached.
2. On the left side of the main interface, select Terraform modules.

3. Click the Options button corresponding to the Terraform module in question and select Detach.
4. If the module was applied at least once, you can choose to keep or delete the resources created by the Terraform.
Automatic Updates
Terraform Modules are automatically updated with every push
command performed in your Git repository. While the vast majority of these updates will generally be implemented successfully, some of them might invalidate the module.
Modules are updated after every successful push
command, even if this leads to the module being invalidated.
To revalidate a module:
1. Click on the project name in the upper-right corner of the Bunnyshell interface.
2. Select View all projects.
3. Click the Settings button of the desired project..
4. From the left-side menu, select Terraform modules.
5. Click the Options button corresponding to your module and select Edit.
You now need to follow the same steps you followed when you added the module. The difference is most of the fields are already completed. The only changes are the ones that invalidated your module (e.g. a modified variable).
Last updated
Was this helpful?