<commit_before>
Bastion Public IP (for DNS): ${bastion_public_ip}
Jenkins Public IP (for DNS): ${jenkins_public_ip}

Execute the following steps, in this order, to create a tunnel to the spinnaker and jenkins instances and an example pipeline:

1.	In a separate window, start up the Spinnaker tunnel:
	--- cut ---
	ssh -o IdentitiesOnly=yes -i ${private_key} -L 9000:localhost:9000 -L 8084:localhost:8084 -L 8087:localhost:8087 ${ssh_user}@${bastion_public_ip} 'ssh -o IdentitiesOnly=yes -i /home/${ssh_user}/.ssh/id_rsa -L 9000:localhost:9000 -L 8084:localhost:8084 -L 8087:localhost:8087 -A ${ssh_user}@${spinnaker_private_ip}'
	--- end cut ---

2.	Go back to the window where you ran terraform, cd to where you cloned the terraform scripts and run the following command:
	--- cut ---
	cd support ; ./create_application_and_pipeline.py -a testappname -p testappnamepipeline -g ${sg_id} -i ${vpc_id} -v ${vpc_sg_id} -m ${mgmt_sg_id} -n ${vpc_name} -r ${aws_region} -o ${instance_iam_role}_profile
	--- end cut ---

3.	Go to http://${jenkins_public_ip}/ (This is Jenkins) in your browser and login with the credentials you set in terraform.tfvars.

4.	Go to http://localhost:9000/ (This is Spinnaker) in a separate tab in your browser. This is the tunnel to the new Spinnaker instance.

5.	On Jenkins, choose the job "Package_example_app" and "build now"
	NOTE: sometimes the build fails with gradle errors about being unable to download dependencies.

6.	When the Jenkins build is done, go to the spinnaker instance in your browser, select 'appname', and then 'Pipelines'. The pipeline should automatically start after the jenkins job is complete.
	It will bake an AMI, then deploy that AMI.<commit_msg>updated output.tpl with a command you might possibly need to run...<commit_after>
Bastion Public IP (for DNS): ${bastion_public_ip}
Jenkins Public IP (for DNS): ${jenkins_public_ip}

Execute the following steps, in this order, to create a tunnel to the spinnaker and jenkins instances and an example pipeline:

1.	In a separate window, start up the Spinnaker tunnel:
	--- cut ---
	ssh -o IdentitiesOnly=yes -i ${private_key} -L 9000:localhost:9000 -L 8084:localhost:8084 -L 8087:localhost:8087 ${ssh_user}@${bastion_public_ip} 'ssh -o IdentitiesOnly=yes -i /home/${ssh_user}/.ssh/id_rsa -L 9000:localhost:9000 -L 8084:localhost:8084 -L 8087:localhost:8087 -A ${ssh_user}@${spinnaker_private_ip}'
	--- end cut ---

2.	If the previous command fails with this message:
	--- cut ---
	Host key verification failed.
	--- end cut ---

	Run this command and then re-run the tunnel command:
	--- cut ---
	ssh -o IdentitiesOnly=yes -i ${private_key} ${ssh_user}@${bastion_public_ip} 'ssh-keyscan -H ${spinnaker_private_ip} >> ~/.ssh/known_hosts'"
	--- end cut ---

3.	Go back to the window where you ran terraform, cd to where you cloned the terraform scripts and run the following command:
	--- cut ---
	cd support ; ./create_application_and_pipeline.py -a testappname -p testappnamepipeline -g ${sg_id} -i ${vpc_id} -v ${vpc_sg_id} -m ${mgmt_sg_id} -n ${vpc_name} -r ${aws_region} -o ${instance_iam_role}_profile
	--- end cut ---

4.	Go to http://${jenkins_public_ip}/ (This is Jenkins) in your browser and login with the credentials you set in terraform.tfvars.

5.	Go to http://localhost:9000/ (This is Spinnaker) in a separate tab in your browser. This is the tunnel to the new Spinnaker instance.

6.	On Jenkins, choose the job "Package_example_app" and "build now"
	NOTE: sometimes the build fails with gradle errors about being unable to download dependencies.

7.	When the Jenkins build is done, go to the spinnaker instance in your browser, select 'appname', and then 'Pipelines'. The pipeline should automatically start after the jenkins job is complete.
	It will bake an AMI, then deploy that AMI.
{'fraction_non_alphanumeric': 0.10833552458585327, 'fraction_numerical': 0.030765185379963186, 'mean_word_length': 4.1060402684563755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1726770', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1224, 'n_words': 497}