# Service Catalog

* Users that are new to AWS have too many options, and may create stacks that are not compliant / in line with the rest of the organization
* Some users just want a quick self-service portal to launch a set of authorized products pre-defined by admins
* Includes: virtual machines, databases, storage options, etc...
* Enter AWS Service Catalog!

### Diagram

<figure><img src="https://1722711354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwNXdoUkfmcozr29fRrfb%2Fuploads%2FiCujbF8hcnI0fNKSmjxL%2FScreenshot%202023-12-25%20at%2003.53.33.png?alt=media&#x26;token=398e5a62-dad5-4cd0-ad2d-7a79418f4c29" alt=""><figcaption></figcaption></figure>

### Pricing Models in AWS

* AWS has 4 pricing models:
* Pay as you go: pay for what you use, remain agile, responsive, meet scale demands
* Save when you reserve: minimize risks, predictably manage budgets, comply with long-terms requirements

  • Reservations are available for EC2 Reserved Instances, DynamoDB Reserved Capacity, ElastiCache Reserved Nodes, RDS Reserved Instance, Redshift Reserved Nodes
* Pay less by using more: volume-based discounts
* Pay less as AWS grows

### Free services & free tier in AWS

• IAM

• VPC

• Consolidated Billing&#x20;

• Elastic Beanstalk

• CloudFormation

• Auto Scaling Groups

• Free Tier: <https://aws.amazon.com/free/>&#x20;

* EC2 t2.micro instance for a year
* S3, EBS, ELB, AWS Data transfer

### Compute Pricing – EC2

• Only charged for what you use

• Number of instances

• Instance configuration:&#x20;

* Physical capacity
* Region
* OS and software&#x20;
* Instance type
* Instance size

• ELB running time and amount of data processed&#x20;

• Detailed monitoring

• On-demand instances:&#x20;

* Minimum of 60s
* Pay per second (Linux/Windows) or per hour (other)

• Reserved instances:

* Up to 75% discount compared to On-demand on hourly rate
* 1- or 3-years commitment
* All upfront, partial upfront, no upfront

• Spot instances:

* Up to 90% discount compared to On-demand on hourly rate&#x20;
* Bid for unused capacity

• Dedicated Host:&#x20;

* On-demand
* Reservation for 1 year or 3 years commitment

• Savings plans as an alternative to save on sustained usage

### Compute Pricing – Lambda & ECS

• Lambda:

* Pay per call
* Pay per duration&#x20;

• ECS:

* EC2 Launch Type Model: No additional fees, you pay for AWS resources stored and created in your application

• Fargate:

* Fargate Launch Type Model: Pay for vCPU and memory resources allocated to your applications in your container

### Storage Pricing – S3

* Storage class: S3 Standard, S3 Infrequent Access, S3 One-Zone IA, S3 Intelligent Tiering, S3 Glacier and S3 Glacier Deep Archive
* Number and size of objects: Price can be tiered (based on volume)
* Number and type of requests
* Data transfer OUT of the S3 region
* S3 Transfer Acceleration
* Lifecycle transitions
* Similar service: EFS (pay per-use, has infrequent access & lifecycle rules)

### Storage Pricing - EBS

• Volume type (based on performance)

• Storage volume in GB per month provisioned

• IOPS:

* General Purpose SSD: Included
* Provisioned IOPS SSD: Provisioned amount in IOPS&#x20;
* Magnetic: Number of requests

• Snapshots:

* Added data cost per GB per month

• Data transfer:

* Outbound data transfers are tiered for volume discounts
* Inbound is free

### Database Pricing - RDS

* Per hour billing
* Database characteristics:&#x20;
  * Engine
  * Size
  * Memory class
* Purchase type:&#x20;
  * On-demand
  * Reserved instances (1 or 3 years) with required up-front
* Backup Storage: There is no additional charge for backup storage up to 100% of your total database storage for a region.
* Additional storage (per GB per month)
* Number of input and output requests per month
* Deployment type (storage and I/O are variable):&#x20;
  * Single AZ
  * Multiple AZs
* &#x20;Data transfer:
  * Outbound data transfers are tiered for volume discounts&#x20;
  * Inbound is free

### Content Delivery – CloudFront

• Pricing is different across different geographic regions&#x20;

• Aggregated for each edge location, then applied to your bill&#x20;

• Data Transfer Out (volume discount)&#x20;

• Number of HTTP/HTTPS requests

<figure><img src="https://1722711354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwNXdoUkfmcozr29fRrfb%2Fuploads%2FpcjhPm8J62HxFRA3AMGs%2FScreenshot%202023-12-25%20at%2004.05.07.png?alt=media&#x26;token=562231e5-ae58-47a6-8e26-75147a2a992d" alt=""><figcaption></figcaption></figure>

### Networking Costs in AWS per GB - Simplified

* Use Private IP instead of Public IP for good savings and better network performance
* Use the same AZ for maximum savings (at the cost of high availability)

<figure><img src="https://1722711354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwNXdoUkfmcozr29fRrfb%2Fuploads%2FOkenCj9XjXtGIolPUgYH%2FScreenshot%202023-12-25%20at%2004.05.43.png?alt=media&#x26;token=734f8360-b61d-4342-bb9f-59bebbdf06ee" alt=""><figcaption></figcaption></figure>
