Poshjoshs Blog

Notes on Amazon Web Services 1 - Introduction

March 02, 2020

On Billing

It is useful to create CloudWatch billing alarms, this way you can be notified when your AWS usage exceeds a dollar amount you specify. I often run load tests with a lot of EC2 instances, which if left unattended can result in a VERY high AWS bill. Billing alarms have saved me many times from getting nasty surprises at the end of the month.

On Adding Elastic Cloud Compute (EC2) Instance

  • Terminate your instances once you are done running, to avoid costs
  • Auto Scaling Groups Help specify how to scale up e.g at 90% capacity add n number of instances, or at 40% remove n instances
  • Start with 2-4 instances for redundancy then add auto scaling group
  • Spot instance. Bids we place which we win, when our bid price is competitive. Add spot instances during maybe periods of high load.
  • Use tags to identify instances

E.g name=QA System, Manager = John Doe, Type = QA

On Adding Volumes (EBS volume)

  • t2.micro image does not have some volume options e.g throughput optimized volume which uses a minimum of 500G
  • Ensure encryption of volumes to secure data
  • You can create and attach additional volumes to existing EC2 instances
  • Create snapshot volumes as kind of template volumes which does not get used directly but as kind of base image for future volumes - CONFIRM

On Adding Security Group

  • Inbound

    • HTTP - Anywhere - For public users
    • HTTPS - Anywhere - For public users
    • SSH - My IP - For me
  • Outbound

    • All traffic - Anywhere - Your app should be able to do all

On Adding RDS

  • Use Aurora MySQL
  • Use Multi - AZ deployment to spread your database across multiple availability zones. The above in additon to proper backup… is necessary for recovery capability
  • Leave the db to be publicly available then use a security group to secure access
  • Enable backup - do not leave the default of 7 days (every 7 days)
  • Be careful allowing automatic upgrades… it could break your system.

On AWS Web Hosting

AWS Home page -> Properties -> Static Website Hosting

AWS Home page -> Logging Logging enables us track changes occuring in our S3 bucket

Create a bucket specifically for logging And enable logging on existing buckets referencing the bucket created for logging

On EC2 volumes vs S3 Buckets

Why we put data, even for EC2 on S3 buckets

  • EC2 volumes are for computations
  • EC2 volumes are more expensive than S3 buckets
  • EC3 volumes are not persistent?????????????

On Adding S3 Bucket

  • Create S3 Bucket
  • Add Permissions
  • Create folders
  • Upload files
  • Grant permissions to individual files
  • Welcome Page You could give an S3 bucket a welcome page to act as a welcome page (usually with links to s3 bucket content)
  • Versioning for S3 buckets Versioning allows us store different versions of a file over time

Acronyms

  • EC2 - Elastic Cloud Compute
  • IOPs - Input Output Per Seconds
  • SSD - Solid State Disk
  • RDP - Remote Desktop Protocol
  • EBS - Elastic Block Storage
  • RDS - Relational Database Service
  • S3 - Simple Storage Service

Links

References


Written byChinomso Ikwuagwuin the spirit of power, love and a sound mind

AWS Achitect 1 - Architecting for Reliability

Questions and Answers - AWS Certified Cloud Architect Associate

AWS Connectivity - PrivateLink, VPC-Peering, Transit-gateway and Direct-connect

AWS - VPC peering vs PrivateLink

Designing Low Latency Systems

AWS Regions, Availability Zones and Local Zones

AWS VPC Endpoints and VPC Endpoint Services (AWS Private Link)

AWS - IP Addresses

AWS Titbits

AWS Elastic Network Interfaces

Jenkins on AWS - Best practices

Jenkins on AWS - Automation

Jenkins on AWS - Setup

Introduction to CIDR Blocks

AWS Virtual Private Cloud (VPC) Examples

AWS Virtual Private Cloud (VPC)

AWS Lamda - Limitations and Use Cases

AWS Certified Solutions Architect Associate - Part 10 - Services and design scenarios

AWS Certified Solutions Architect Associate - Part 9 - Databases

AWS Certified Solutions Architect Associate - Part - 8 Application deployment

AWS Certified Solutions Architect Associate - Part 7 - Autoscaling and virtual network services

AWS Certified Solutions Architect Associate - Part 6 - Identity and access management

AWS Certified Solutions Architect Associate - Part 5 - Compute services design

AWS Certified Solutions Architect Associate - Part 4 - Virtual Private Cloud

AWS Certified Solutions Architect Associate - Part 3 - Storage services

AWS Certified Solutions Architect Associate - Part 2 - Introduction to Security

AWS Certified Solutions Architect Associate - Part 1 - Key services relating to the Exam

AWS Certifications - Part 1 - Certified solutions architect associate

Notes on Amazon Web Services 8 - Command Line Interface (CLI)

Notes on Amazon Web Services 7 - Elastic Beanstalk

Notes on Amazon Web Services 6 - Developer, Media, Migration, Productivity, IoT and Gaming

Notes on Amazon Web Services 5 - Security, Identity and Compliance

Notes on Amazon Web Services 4 - Analytics and Machine Learning

Notes on Amazon Web Services 3 - Managment Tools, App Integration and Customer Engagement

Notes on Amazon Web Services 2 - Storages databases compute and content delivery

Notes on Amazon Web Services 1 - Introduction

Amazon Web Services - Create IAM User

Preparing Jenkins after Installation

Jenkins titbits, and then some

Installing and running Jenkins in Docker

Introduction to Jenkins

Docker Titbits

How to Add Chat Functionality to a Maven Java Web App