# Module 5

### All about AWS Compute Services

{% embed url="<https://awsfdn.adot8.com/module-6>" %}

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2Fyc7J0qtEwgmpLWFq3Lr2%2Fimage.png?alt=media&#x26;token=0fea7847-515a-4f27-917e-025ce40ea8a8" alt=""><figcaption></figcaption></figure>

### Compute service Category differences

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2F63LkvpG8YxJRXJbkCOx6%2Fimage.png?alt=media&#x26;token=40ef2a6d-e8f0-4ba8-8546-4e5e035c5bc0" alt=""><figcaption></figcaption></figure>

### EC2 AMI's

{% embed url="<https://awsfdn.adot8.com/module-6#launching-an-amazon-ec2-instance>" %}

### EC2 Image Builder

Essentially like a pipeline. Tell it that it will create a new image every Friday

EC2 Image Builder automates the creation, management, and deploymentof up-to-date and compliant golden VM images.

* Provides a graphical interface to create image-building pipelines
* Creates and maintains Amazon EC2 AMIs and on-premises VM images
* Produces secure, validated, and up-to-date images
* Enforces version control

### EC2 Storage

{% hint style="info" %}

* Instance store is temporary. Just like memory it will be wiped once the instance is stopped
* EBS is attached like a Hard Drive
* EFS/FSx is used a like a network file share. It can be attached to multiple instances
  {% endhint %}

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2Fo2LbkMppostFG3JKEGnZ%2Fimage.png?alt=media&#x26;token=33502424-c6a5-470a-a968-07fe550949c9" alt=""><figcaption></figcaption></figure>

{% embed url="<https://awsfdn.adot8.com/module-6#amazon-ec2-storage-options>" %}

#### EFS/FSx

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2F048wh3FfwUYPpo3H5phx%2Fimage.png?alt=media&#x26;token=9356e6c9-581f-4d52-aecc-51d0739dd3c2" alt=""><figcaption></figcaption></figure>

#### Amazon FSx for Windows

* Provides fully managed shared file system storage for Microsoft Windows EC2 instances
* •Native Microsoft Windows compatibility
* New Technology File System (NTFS)
* &#x20;Uses Native Server Message Block (SMB) protocol version 2.0 to 3.1.1
* Distributed File System (DFS) Namespaces and DFS Replication
* Integrates with Microsoft Active Directory and supports Windows access control lists (ACLs)

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2Frf7f0X1C76ywed4ZW2kT%2Fimage.png?alt=media&#x26;token=8cd646ff-b2ac-4e2e-9f0c-96b523229ed9" alt=""><figcaption></figcaption></figure>

#### User Scripts

You can place a script that will automatically install a webserver or specific packages on instance launch for example.

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2Fahtvj8IiWKuXvjUsgsSY%2Fimage.png?alt=media&#x26;token=008aca59-eb03-4773-9f83-aa7a405bf421" alt=""><figcaption></figcaption></figure>

#### Best Practices

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2FsEfMmrcC2HRdXffFHpKx%2Fimage.png?alt=media&#x26;token=97f28999-561d-4a91-b533-e24725b4ea32" alt=""><figcaption></figcaption></figure>

#### AMI Deployment Models

<figure><img src="https://3899036363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsmRwCapKRPjknpALqp9Y%2Fuploads%2FwdlPgfcYdkkQrOHjhxnr%2Fimage.png?alt=media&#x26;token=ce5892c9-21ac-4f07-ac68-ebe24efceff7" alt=""><figcaption></figcaption></figure>

### Placement Groups

| Placement Benefits                              | Placement Limitations                                                   | Placement Strategies |
| ----------------------------------------------- | ----------------------------------------------------------------------- | -------------------- |
| Increase network performance between instances. | An instance can be launched in only one placement group at a time.      | Cluster              |
| Reduce correlated or simultaneous failure.      | Instances with a tenancy of host can’t be launched in a placement group | Partition            |
|                                                 |                                                                         | Spread               |

* Cluster: Packs instances close together inside an Availability Zone. This strategy helps workloads to achieve low-latency network performance.&#x20;
* Partition: Spreads your instances across logical partitions so that groups of instances in one partition do not share the underlying hardware with groups of instances in different partitions.
* Spread: Strictly places a small group of instances across distinct underlying hardware to reduce correlated failures.
