Create an ssh key and store it in ~/.ssh/keys/aws
.
Change the public_key
variable in aws_instance.cassandra.tf
to your public key.
In packer/apache-cassandra/values.auto.pkrvar.hcl
set your desired vpc_id
, region
, subnet_id
and instance_type
.
In packer
run:
packer build apache-cassandra
In example/examplea
run:
terraform init
terraform apply