

If you haven't set up an Alibaba Cloud Access Key or Secret before, take a look at these docs:įor your MySQL password, be sure to choose something long and complex that will satisfy MySQL's strong password requirements. You can change that by editing the "optional" settings in terraform.tfvars. By default, the Terraform script will set up your RDS database and ECS virtual machine in ap-southeast-1 (Singapore). You might also want to change the "region". Open that file in your favorite text editor, and insert a valid access key, access key secret, and password for your MySQL database. Now, create a terraform variables file, like this:Ĭp terraform.tfvars Now, from your terminal window, navigate to the document-management-owncloud directory, like this:Ĭd terraformExamples/abc/document-management-owncloudĭone? Good. Not sure where that is? You can run pwd from the command line, to find out which directory you are in, like this: Note that it will be downloaded to whatever directory you were in when you ran the git command. This will download a copy of my terraformExamples GitHub repository.
OWNCLOUD GIT CODE
You can download all my Terraform example code (including the ownCloud setup code) by running the following command from a terminal (or PowerShell on Windows): Instructions for both Git and Terraform can be found here:
OWNCLOUD GIT INSTALL
Regardless of what OS you use, you will probably have to install Terraform yourself. Many Linux machines will have git installed already, and trying to run git from the Terminal in macOS will prompt you to install, if it isn't already there (just follow the prompts). To use it, I will assume familiarity with git and terraform. I have created a handy Terraform script that does 80% of the work for you.
