Terraform Cloud Project Bootcamp with Andrew Brown — 2.5.0 Deploying to Terratowns
<h1>1. Deploy to Missingo</h1>
<p>In the previous episode, we were testing the environment locally in Gitpod workspace. Now we want to deploy our <code>terratown_homes</code> to actual TerraTown. The town <code>Missingo</code> is a test town for campers to test-deploy our <code>homes</code>. Let’s do this.</p>
<p>The first thing we do is to update the URL endpoint for the <code>terratowns</code> provider in <code>main.tf</code>.</p>
<pre>
provider "terratowns" {
- endpoint = "http://localhost:4567/api"
+ endpoint = "https://terratowns.cloud/api"
user_uuid = "e328f4ab-b99f-421c-84c9-4ccea042c7d1"
token = "9b49b3fb-b8e9-483c-b703-97ba88eef8e0"
}</pre>
<p>Then we replace the mock <code>user_uuid</code> and <code>token</code> with our own. You can find your own User UUID in the access token on <a href="https://www.exampro.co/" rel="noopener ugc nofollow" target="_blank">ExamPro.co</a> website.</p>
<ul>
<li><code><strong>user_uuid</strong></code>: click on your profile circle at the top-right corner.</li>
<li><code><strong>token</strong></code>: from that circle, you have the top-down menu. Click on <code>Settings</code>. Then you will have the <code>Vending Machine</code> option. There, you can generate your own access token.</li>
</ul>
<p><a href="https://medium.com/@gwenleigh/terraform-cloud-project-bootcamp-with-andrew-brown-2-5-0-deploying-to-terratowns-b937e75641c9"><strong>Click Here</strong></a></p>