First you need to build the jenkins image. You can run following script:
sh ./packer/build.sh
To get the image name run following command:
export TF_VAR_image=$(linode-cli images list | grep jenkins-tf-demo | awk '{print $2}')
Export the linode API key via a env var:
export TF_VAR_token=<YOUR_KEY_HERE>
Confirm that the env vars are set correctly:
echo $TF_VAR_token && echo $TF_VAR_image
Check if terraform finds any errors:
terraform plan
If no errors were found you can apply the configuration:
terraform apply