Skip to content

Commit

Permalink
Latest round of updates for ch1
Browse files Browse the repository at this point in the history
  • Loading branch information
brikis98 committed Jun 3, 2024
1 parent 31ec329 commit dd328f3
Show file tree
Hide file tree
Showing 26 changed files with 3,143 additions and 673 deletions.
1,790 changes: 1,633 additions & 157 deletions docs/02.html

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions docs/03.html
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ <h1 id="how_to_manage_your_infra_as_code">Part 2. How to Manage Your Infrastruct

improvements, and if they ever go on vacation, everything grinds to a halt (and you don&#8217;t even dare consider

what would happen if they left the company or got hit by a bus).<sup class="footnote">[<a id="_footnoteref_8" class="footnote" href="13-footnotes.html#_footnotedef_8" title="View footnote.">8</a>]</sup></p>
what would happen if they left the company or got hit by a bus).<sup class="footnote">[<a id="_footnoteref_10" class="footnote" href="13-footnotes.html#_footnotedef_10" title="View footnote.">10</a>]</sup></p>

</dd>

Expand Down Expand Up @@ -1324,15 +1324,15 @@ <h2 id="_the_benefits_of_iac">The Benefits of IaC</h2>

<div class="paragraph">

<p>Since most of the examples in this blog post series use AWS (as discussed in <a href="02.html#deploy_an_app_using_iaas">Section 1.4.2</a>), you&#8217;ll need
<p>Since most of the examples in this blog post series use AWS (as discussed in <a href="02.html#deploy_an_app_using_iaas">Section 1.2.5</a>), you&#8217;ll need

to authenticate to AWS on the command line. This requires using an <em>access key</em>, which you can create by heading over

to the <a href="https://console.aws.amazon.com/iam/">IAM Console</a>, clicking Users, and clicking on the IAM user you created

in <a href="02.html#deploy_an_app_using_iaas">Section 1.4.2</a>. Next, click on the "Security credentials" tab, scroll down to the "Access keys"
in <a href="02.html#deploy_an_app_using_iaas">Section 1.2.5</a>. Next, click on the "Security credentials" tab, scroll down to the "Access keys"

section, and click "Create access key" as shown in <a href="03.html#iam_user_access_keys">Figure 10</a>:</p>
section, and click "Create access key" as shown in <a href="03.html#iam_user_access_keys">Figure 19</a>:</p>

</div>

Expand All @@ -1344,7 +1344,7 @@ <h2 id="_the_benefits_of_iac">The Benefits of IaC</h2>

</div>

<div class="title">Figure 10. Create an access key for your IAM user.</div>
<div class="title">Figure 19. Create an access key for your IAM user.</div>

</div>

Expand Down Expand Up @@ -1782,7 +1782,7 @@ <h3 id="example_deploy_ec2_using_bash">Example: Deploy an EC2 Instance Using a B

clicking "Instance state," and choosing "Terminate instance" in the drop down, as shown in

<a href="03.html#ec2_terminate_instance_instructions">Figure 11</a>. This ensures that your account doesn&#8217;t start accumulating any unwanted
<a href="03.html#ec2_terminate_instance_instructions">Figure 20</a>. This ensures that your account doesn&#8217;t start accumulating any unwanted

charges.</p>

Expand All @@ -1796,7 +1796,7 @@ <h3 id="example_deploy_ec2_using_bash">Example: Deploy an EC2 Instance Using a B

</div>

<div class="title">Figure 11. Make sure to terminate your EC2 instance when you&#8217;re done testing.</div>
<div class="title">Figure 20. Make sure to terminate your EC2 instance when you&#8217;re done testing.</div>

</div>

Expand Down Expand Up @@ -2648,7 +2648,7 @@ <h3 id="example_configure_server_ansible">Example: Configure a Server Using Ansi

standardized role folder structure you&#8217;ll need for this simple example. Copy the Node.js sample app you saw earlier in

in <a href="02.html#example_run_sample_app_locally">Section 1.1.1</a> into <em>files/app.js</em>:</p>
in <a href="02.html#example_run_sample_app_locally">Section 1.2.1</a> into <em>files/app.js</em>:</p>

</div>

Expand Down Expand Up @@ -2866,7 +2866,7 @@ <h3 id="example_configure_server_ansible">Example: Configure a Server Using Ansi

<a href="https://console.aws.amazon.com/ec2/home">EC2 Console</a> (look for the instance ID the playbook writes to the log),

clicking "Instance state," and choosing "Terminate instance" in the drop down, as shown in <a href="02.html#ec2_terminate_instance">Figure 9</a>.
clicking "Instance state," and choosing "Terminate instance" in the drop down, as shown in <a href="02.html#ec2_terminate_instance">Figure 18</a>.

This ensures that your account doesn&#8217;t start accumulating any unwanted charges.</p>

Expand Down Expand Up @@ -3116,13 +3116,13 @@ <h2 id="server_templating_tools">Server Templating Tools</h2>

</div>

<div class="title">Figure 12. The two main types of images: VMs, on the left, and containers, on the right. VMs virtualize the hardware, whereas containers virtualize only user space.</div>
<div class="title">Figure 21. The two main types of images: VMs, on the left, and containers, on the right. VMs virtualize the hardware, whereas containers virtualize only user space.</div>

</div>

<div class="paragraph">

<p>As shown in <a href="03.html#vm_versus_container">Figure 12</a>, there are two broad categories of tools for working with images:</p>
<p>As shown in <a href="03.html#vm_versus_container">Figure 21</a>, there are two broad categories of tools for working with images:</p>

</div>

Expand Down Expand Up @@ -3158,7 +3158,7 @@ <h2 id="server_templating_tools">Server Templating Tools</h2>

<dd>

<p>A <em>container</em> emulates the user space of an OS.<sup class="footnote">[<a id="_footnoteref_9" class="footnote" href="13-footnotes.html#_footnotedef_9" title="View footnote.">9</a>]</sup> You run a <em>container engine</em>, such as Docker or cri-o, to create isolated processes, memory, mount
<p>A <em>container</em> emulates the user space of an OS.<sup class="footnote">[<a id="_footnoteref_11" class="footnote" href="13-footnotes.html#_footnotedef_11" title="View footnote.">11</a>]</sup> You run a <em>container engine</em>, such as Docker or cri-o, to create isolated processes, memory, mount

points, and networking.</p>

Expand All @@ -3172,7 +3172,7 @@ <h2 id="server_templating_tools">Server Templating Tools</h2>

server share that server&#8217;s OS kernel and hardware, so it&#8217;s much more difficult to achieve the level of isolation and

security you get with a VM.<sup class="footnote">[<a id="_footnoteref_10" class="footnote" href="13-footnotes.html#_footnotedef_10" title="View footnote.">10</a>]</sup> However, because the kernel
security you get with a VM.<sup class="footnote">[<a id="_footnoteref_12" class="footnote" href="13-footnotes.html#_footnotedef_12" title="View footnote.">12</a>]</sup> However, because the kernel

and hardware are shared, your containers can boot up in milliseconds and have virtually no CPU or memory overhead. You

Expand Down Expand Up @@ -3852,7 +3852,7 @@ <h3 id="example_deploy_ec2_opentofu">Example: Deploy an EC2 Instance Using OpenT

<code>ap-southeast-2</code> (Sydney). Within each region, there are multiple isolated datacenters known as <em>Availability

Zones</em> (AZs), such as <code>us-east-2a</code>, <code>us-east-2b</code>, and so on.<sup class="footnote">[<a id="_footnoteref_11" class="footnote" href="13-footnotes.html#_footnotedef_11" title="View footnote.">11</a>]</sup> There are
Zones</em> (AZs), such as <code>us-east-2a</code>, <code>us-east-2b</code>, and so on.<sup class="footnote">[<a id="_footnoteref_13" class="footnote" href="13-footnotes.html#_footnotedef_13" title="View footnote.">13</a>]</sup> There are

many other settings you can configure on this provider, but for now, let&#8217;s keep it simple.</p>

Expand Down Expand Up @@ -5672,7 +5672,7 @@ <h3 id="_provisioning_plus_configuration_management">Provisioning Plus Configura

topology (i.e., virtual private clouds [VPCs], subnets, route tables), data stores (e.g., MySQL, Redis), load balancers,

and servers. You then use Ansible to deploy your apps on top of those servers, as depicted in <a href="03.html#tofu_and_ansible">Figure 13</a>.</p>
and servers. You then use Ansible to deploy your apps on top of those servers, as depicted in <a href="03.html#tofu_and_ansible">Figure 22</a>.</p>

</div>

Expand All @@ -5684,7 +5684,7 @@ <h3 id="_provisioning_plus_configuration_management">Provisioning Plus Configura

</div>

<div class="title">Figure 13. OpenTofu deploys the infrastructure, including servers, and Ansible deploys apps onto those servers.</div>
<div class="title">Figure 22. OpenTofu deploys the infrastructure, including servers, and Ansible deploys apps onto those servers.</div>

</div>

Expand Down Expand Up @@ -5712,7 +5712,7 @@ <h3 id="_provisioning_plus_server_templating">Provisioning Plus Server Templatin

with these VM images and the rest of your infrastructure, including the network topology (i.e., VPCs, subnets, route

tables), data stores (e.g., MySQL, Redis), and load balancers, as illustrated in <a href="03.html#tofu_and_packer">Figure 14</a>.</p>
tables), data stores (e.g., MySQL, Redis), and load balancers, as illustrated in <a href="03.html#tofu_and_packer">Figure 23</a>.</p>

</div>

Expand All @@ -5724,7 +5724,7 @@ <h3 id="_provisioning_plus_server_templating">Provisioning Plus Server Templatin

</div>

<div class="title">Figure 14. OpenTofu deploys the infrastructure, including servers, and Packer creates the VMs that run on those servers.</div>
<div class="title">Figure 23. OpenTofu deploys the infrastructure, including servers, and Packer creates the VMs that run on those servers.</div>

</div>

Expand Down Expand Up @@ -5770,7 +5770,7 @@ <h3 id="_provisioning_plus_server_templating_plus_orchestration">Provisioning Pl

when the cluster of servers boots up, it forms a Kubernetes cluster that you use to run and manage your Dockerized

applications, as shown in <a href="03.html#tofu_and_packer_and_kubernetes_and_docker">Figure 15</a>.</p>
applications, as shown in <a href="03.html#tofu_and_packer_and_kubernetes_and_docker">Figure 24</a>.</p>

</div>

Expand All @@ -5782,7 +5782,7 @@ <h3 id="_provisioning_plus_server_templating_plus_orchestration">Provisioning Pl

</div>

<div class="title">Figure 15. OpenTofu deploys the infrastructure, including servers; Packer creates the VMs that run on those servers; and Kubernetes manages those VMs as a cluster for running Docker containers.</div>
<div class="title">Figure 24. OpenTofu deploys the infrastructure, including servers; Packer creates the VMs that run on those servers; and Kubernetes manages those VMs as a cluster for running Docker containers.</div>

</div>

Expand Down Expand Up @@ -5991,7 +5991,7 @@ <h2 id="_conclusion_2">Conclusion</h2>

<div id="footer-text">

Last updated 2024-05-31 16:43:42 -0400
Last updated 2024-06-03 16:46:22 -0400

</div>

Expand Down
Loading

0 comments on commit dd328f3

Please sign in to comment.