Note: The ability to work with Terraform scripts in CloudShare depends on whether a user's assigned role has sufficient permissions.
You can create a new Terraform script for the account from within CloudShare, by manually entering or pasting the script code.
- From the External Resources menu, click Create New Script. The Create a New Script page opens:
- From the External Cloud dropdown menu, select the desired cloud provider.
- From the Project drop-down menu, select the project that will use the script.
- In the Script Name field, enter a unique name for the new script.
- In the Script Description text box, enter some helpful details about the new script.
- In the Script Context text box, enter or paste the script code itself. If desired, you can enter the code into a Terraform syntax-friendly editing window by clicking Open Script in Terraform Editor. The editor will provide basic formatting hints for your script.
- When you finish entering the details and content for the new script, click Create New Script. The new script will be stored with the creation scripts for the account.
The Terraform script syntax will then be validated. Should validation fail, information about the failure is displayed on its editor page, and the failed script also will be marked as Invalid in the Creation Scripts list.
Terraform Script Examples
To help you create scripts, CloudShare maintains Terraform script examples for various external clouds in a dedicated GitHub repository: https://github.com/cloudshare/cloudshare-terraform-samples.
We maintain a list of all currently-supported Terraform versions and providers in this GitHub repository as well.
Supported Terraform Versions
The following Terraform versions are supported:
- 0.13
- 0.14
- 1.1.4
- 1.2.9
- 1.3.2
- 1.4.7