Kaggle Super plateforme Using Packer, Ansible, and Terraform
This will provision 2 machines : GPU and CPU . Many modules will be installed
- h2o
- conda with differents env : 2.7 , 3.6
- All Packages
Getting Started
Step 1: Setup a network using Terraform
Step 2: Create AMI using packer and ansible inside the above-created network
Step 3: Setup EC2 instance inside the network with packer AMI
Provide access key and token in Terraform and Packer code.
Command to run network Terraform
Go in folder networkTerraform, run command:
-
terraform init
-
terraform plan
-
terraform apply
Command to run Packer
Provide subnet id created in network terraform in packer.json
packer build packer.json
Command to run main Terraform
Go in folder terraform, run command:
-
terraform init
-
terraform plan
-
terraform apply