KEMBAR78
Cloud | PDF | Amazon Web Services | Load Balancing (Computing)
0% found this document useful (0 votes)
16 views5 pages

Cloud

The document outlines various AWS topics including S3 bucket usage with CloudFront and VPC architecture, AWS Site-to-Site VPN and Direct Connect, VPC endpoints for S3, RDS Multi-AZ deployment, containerization benefits, and deploying Docker containers on AWS ECS. It also discusses DevOps principles and the CI/CD process with AWS CodePipeline. Each section provides essential features, workflows, and benefits relevant to AWS services and best practices.

Uploaded by

dp688415
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views5 pages

Cloud

The document outlines various AWS topics including S3 bucket usage with CloudFront and VPC architecture, AWS Site-to-Site VPN and Direct Connect, VPC endpoints for S3, RDS Multi-AZ deployment, containerization benefits, and deploying Docker containers on AWS ECS. It also discusses DevOps principles and the CI/CD process with AWS CodePipeline. Each section provides essential features, workflows, and benefits relevant to AWS services and best practices.

Uploaded by

dp688415
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Certainly!

Here's a combined, clean summary of your requested AWS topics with questions included:

S3 Bucket Scenario with CloudFront and VPC with Public and Private Subnets

Scenario:

• Amazon S3 Bucket: Used for storing static website content (HTML, CSS, JavaScript, images).

• CloudFront: Acts as a CDN to deliver S3 content globally with caching and low latency.

• VPC Architecture:

o Public Subnet: Hosts NAT Gateway and Application Load Balancer (ALB).

o Private Subnet: Hosts EC2 instances (web/app servers) that access S3 via VPC
Endpoint.

Workflow:

1. Users request content through CloudFront.

2. CloudFront serves cached content or fetches from S3 if cache misses.

3. S3 bucket restricts access only to CloudFront via Origin Access Control (OAC).

4. EC2 instances in private subnet access S3 using a VPC Endpoint (no internet required).

5. NAT Gateway in public subnet provides internet access for instances if needed.

AWS Site-to-Site VPN and AWS Direct Connect

AWS Site-to-Site VPN

• Secure, encrypted connection over the public internet using IPsec tunnels.

• Quick setup (minutes to hours).

• Bandwidth generally up to 1.25 Gbps.

• Suitable for secure, cost-effective connectivity and backup/failover.

AWS Direct Connect

• Dedicated private physical connection from on-premises to AWS.

• Provides consistent low latency and high bandwidth (1 Gbps to 100 Gbps).

• Higher cost, longer setup time (weeks).

• Best for high-throughput, latency-sensitive workloads.

Summary Table:

Feature Site-to-Site VPN Direct Connect

Connection Type Encrypted over public internet Dedicated private physical link
Feature Site-to-Site VPN Direct Connect

Latency Higher, internet-dependent Low, consistent

Bandwidth Up to ~1.25 Gbps 1 Gbps to 100 Gbps

Setup Time Minutes to hours Weeks

Cost Pay-as-you-go, generally cheaper Higher setup, lower data transfer cost

Use Case Quick, secure connectivity High-performance, stable network

VPC Endpoint for S3 Scenario, S3 Storage Classes, AWS ELB

VPC Endpoint for S3

• Enables private connectivity between VPC and S3 without internet access.

• Traffic between instances in private subnet and S3 stays within the AWS network.

• Increases security and reduces latency.

S3 Storage Classes

• S3 Standard: General-purpose storage for frequently accessed data.

• S3 Intelligent-Tiering: Automatically moves data between two tiers based on access


patterns.

• S3 Standard-IA (Infrequent Access): For data accessed less frequently but requires rapid
access.

• S3 One Zone-IA: Lower-cost option with data stored in a single AZ.

• S3 Glacier: Low-cost archive storage with retrieval times in minutes to hours.

• S3 Glacier Deep Archive: Lowest-cost storage for long-term retention, retrieval in hours.

AWS Elastic Load Balancer (ELB)

• Distributes incoming traffic across multiple targets (EC2 instances, containers).

• Types:

o Application Load Balancer (ALB): Layer 7, supports HTTP/HTTPS, path-based routing.

o Network Load Balancer (NLB): Layer 4, ultra-low latency, handles TCP traffic.

o Classic Load Balancer (CLB): Legacy, supports both Layer 4 and 7.

RDS Multi-AZ Deployment

• Provides high availability by automatically replicating a primary DB instance to a standby


instance in a different Availability Zone.
• Uses synchronous replication for data durability.

• Automatic failover in case of primary instance failure.

• Supported on MySQL, PostgreSQL, MariaDB, Oracle, and SQL Server.

• Automated backups are taken from the standby instance to avoid performance impact.

Advantages of Containerization

1. Portability: Run containers consistently across any environment.

2. Resource Efficiency: Shares host OS kernel, uses fewer resources than VMs.

3. Scalability: Quick to start/stop and scale.

4. Isolation: Containerized apps run isolated from each other.

5. Consistency: Same environment from development to production.

6. Fast Deployment: Lightweight and quick to deploy.

7. Security: Supports isolation and least privilege.

8. Simplified Management: Works well with orchestration tools like Kubernetes.

9. Version Control: Container images can be versioned and rolled back.

10. Multi-cloud Ready: Deploy on any cloud or on-premises.

Deploy Docker Container on AWS ECS

Steps:

1. Build & Push Docker Image to Amazon ECR

o Build locally, tag, and push image to ECR repository.

2. Create ECS Cluster

o Use EC2 or Fargate launch type.

3. Create Task Definition

o Define container image, CPU, memory, port mappings, and environment variables.

4. Create ECS Service

o Deploy task definition with desired number of tasks.

o Optionally configure load balancer.

5. Test Application

o Access via ALB DNS or public IP.


Benefits of AWS ECS

• Fully managed container orchestration.

• Integrates seamlessly with AWS services (ECR, CloudWatch, IAM).

• Supports Fargate (serverless) and EC2 launch types.

• Scales containers automatically.

• Secure with IAM roles and VPC networking.

• Cost-effective with pay-for-usage and Spot instances.

• Supports rolling updates and automatic recovery.

• Provides logging and monitoring integration.

• Hybrid cloud support with ECS Anywhere.

Install Docker and Verify

Linux Installation (Ubuntu example):

sudo apt-get update

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o


/usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-


keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee
/etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io -y

sudo systemctl start docker

sudo systemctl enable docker

docker --version

sudo docker run hello-world

(Optional) Allow non-root user to run docker:

sudo usermod -aG docker $USER

Log out and back in for changes to take effect.

DevOps Principles, CI/CD, and AWS CodePipeline

DevOps Principles
• Collaboration & Communication between Dev and Ops.

• Automation of build, test, deploy, and monitoring.

• Continuous Integration (CI): Frequent merges and automated testing.

• Continuous Delivery (CD): Automated deployments to staging or production.

• Infrastructure as Code (IaC): Manage infrastructure with code.

• Monitoring and Logging for feedback.

• Security integrated early (DevSecOps).

CI/CD Pipeline

• Continuous Integration: Code commits trigger automated builds and tests.

• Continuous Delivery: Automatically deploy to staging environments.

• Continuous Deployment: Fully automated deployment to production.

AWS CodePipeline

• Fully managed CI/CD service.

• Automates source, build, test, and deploy stages.

• Integrates with CodeCommit, GitHub, CodeBuild, CodeDeploy, ECS, Lambda, and more.

• Supports manual approvals and multi-stage pipelines.

• Secure with IAM roles and scalable for large workloads.

If you want me to create detailed diagrams or walkthroughs for any of these topics, just say the
word!

You might also like