The goal of this project is to deploy a Spark cluster on AWS using Packer, Terraform, Consul, and Atlas.
Run the commands below from the spark
directory.
packer push packer/spark-consul.json
packer push packer/spark-master.json
packer push packer/spark-slave.json
Once the Packer builds have completed, you can proceed with the Terraform commands.
terraform remote config -backend="Atlas" -backend-config="name=$ATLAS_USERNAME/spark-cluster"
terraform get -update terraform/
terraform push -vcs=false -name="$ATLAS_USERNAME/spark-cluster" terraform/
terraform apply terraform/
terraform destroy terraform/