Deployment on AWS using Terraform
Last updated
Last updated
The main Terraform configuration settings are included in the main.tf
file. You can create it by following this procedure or using the WEKA Cloud Deployment Manager. See WEKA Cloud Deployment Manager Web (CDM Web) User Guide.
The must be installed on the workstation used for the deployment. Check the minimum required Terraform version specified in the section of the Terraform-AWS-WEKA module.
Review the and use it as a reference for creating the main.tf
according to your deployment specifics on AWS.
Tailor the main.tf
file to create SMB-W or NFS protocol clusters by adding the relevant code snippet. Adjust parameters like the number of gateways, instance types, domain name, and share naming:
SMB-W
NFS
Once you complete the main.tf settings, apply it: Run terraform apply
When deploying a WEKA cluster on the cloud using Terraform, a default username (admin) is automatically generated, and Terraform creates the password. Both the username and password are stored in the AWS Secrets Manager. This user facilitates communication between the cloud and the WEKA cluster, particularly during scale-up and scale-down operations.
As a best practice, it’s recommended to create a dedicated local user in the WEKA cluster with the Cluster Admin role. This user will serve as a service account for cloud-cluster communications.
Procedure
Create a local user with the Cluster Admin role in the WEKA cluster.
In the AWS Secrets Manager, navigate to Secrets.
Update the weka_username
and weka_password
services with the username and password of the newly created local user.
Validate the changes by checking the execution results and ensuring they pass successfully.
To run IOs against the cluster, a valid license must be applied. Obtain a valid license and apply it to the WEKA cluster. For details, see License overview.
Related topic
Add WEKA POSIX clients (optional): If needed, add to support your workload by incorporating the specified variables into the main.tf
file: