Introduction To Cloud Computing On Aws For Beginners

Introduction To Cloud Computing On Aws For Beginners

Reading time1 min
#Cloud#AWS#Computing#EC2#S3#IAM

AWS Cloud Computing: Foundational Concepts for Practical Deployment

Provisioning infrastructure used to mean physical servers, capital outlay, and lengthy lead times. Today, platforms like Amazon Web Services (AWS) eliminate upfront hardware constraints and deliver on-demand resources, shifting IT models toward operational agility and measurable efficiency.


Cloud Computing via AWS: The Essentials

AWS is the dominant Infrastructure-as-a-Service provider, exposing compute, storage, and auxiliary IT services via high-availability APIs. At the core, it's about renting just-in-time capacity with granular billing—no hardware lifecycle headaches, no truck rolls.

Key Properties:

  • Elasticity: Instantly add or reduce capacity. Useful for unpredictable load.
  • Global Infrastructure: Regions and Availability Zones (AZs) for both latency-sensitive deployments and high-availability topologies.
  • Security and Access Controls: Resource isolation, permission granularity, auditability.

Note: “Cloud” does not absolve you of architectural trade-offs—misconfigured resources are still a common source of outages and security incidents.


Laying the Groundwork: Core AWS Constructs

Regions and Availability Zones

  • Region: A physical location with multiple isolated, redundant data centers (AZs). e.g.: us-east-1, eu-west-1.
  • Availability Zone: Discrete DCs within a region. Critical for HA. If a single AZ fails, workloads should remain available across others.

Gotcha: Not all AWS services are present in every region. S3 is near-ubiquitous, but new services often roll out US-first.


EC2 (Elastic Compute Cloud)

EC2 = on-demand VMs running on shared AWS hardware. Use them for any general-purpose compute task: web servers, CI executors, long-running app services.

Example: Deploy a web server (Amazon Linux 2023 LTS) with user data bootstrap:

aws ec2 run-instances \
  --image-id ami-0abcdef1234567890 \
  --instance-type t3.micro \
  --user-data file://init-userdata.sh
  • ami-0abcdef1234567890 is region-specific.
  • t3.micro is free tier–eligible (as of this writing).
  • init-userdata.sh can automate Apache/Nginx setup.

Known issue: SSH config mismatches and stale keys are common pain points when automating instance provisions.


S3 (Simple Storage Service)

Object storage for static content, offsite backups, data lakes. Capacity is virtually unlimited, but throughput and consistency have nuances (HEAD vs. GET consistency, read-after-write in all regions since 2020).

Practical Example: Static Site Hosting

  1. Create a bucket:
    • Must be globally unique, e.g. mycorp-static-assets-2024.
  2. Upload objects:
    • Can automate via aws s3 cp or CI/CD step.
  3. Enable static website hosting:
    • Under Properties, set index and error docs.
    • Note: S3 endpoint for static sites is not HTTPS natively — requires CloudFront for TLS.

Non-obvious tip: Cross-region replication (CRR) is available, but can incur unexpected costs if used indiscriminately.


IAM (Identity and Access Management)

Access control with least privilege by default. Every API call is authenticated; permissions are granted via policies attached to users, groups, or roles.

Recommended practice:

  • Use IAM roles for EC2 instead of storing AWS secrets on disk.
  • Example managed policy:
    {
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:PutObject"],
      "Resource": "arn:aws:s3:::mycorp-static-assets-2024/*"
    }
    

Side note: Explicit deny always overrides allow. Get to know aws iam simulate-policy.


Rapid Deployment: Minimal Static Web Hosting Example

Objective: Publish a static HTML site to S3, using minimal resources and no server maintenance.

Steps:

  1. aws s3 mb s3://mycorp-demo-site-2024 --region us-east-1
  2. aws s3 sync ./site s3://mycorp-demo-site-2024/
  3. Configure public access for site files (see S3 Block Public Access settings) — default is denied.
  4. Enable static website hosting in S3 console, set index.html.
  5. Access site via:
    http://mycorp-demo-site-2024.s3-website-us-east-1.amazonaws.com/
    

Caution: S3 website endpoint doesn’t support HTTPS directly; use CloudFront if TLS is a requirement.


Building Practical AWS Skills: Field Notes

StepCommon PitfallRecommended Fix
Resource CreationOver-provisioning expensive EC2 typesStart with t3.micro, monitor
S3 Project LaunchFiles not accessible (403)Check bucket policy + public ACL
IAM SetupOverly permissive policiesAttach fine-grained permissions

Monitor costs with the Billing & Cost Management dashboard. The AWS Free Tier covers many workloads, but misconfigured resources (e.g., EBS, NAT Gateway) can unexpectedly rack up charges.

Join: AWS re:Post, Stack Overflow, or local user groups for real-world troubleshooting patterns.


Final Points

Mastering AWS fundamentals means more than ticking service boxes. Focus on minimal, secure deployments and understand the impact of each service on architecture, spend, and operations.

For deeper dives—consider exploring CI/CD pipelines using CodePipeline, or automating deployments with CloudFormation and Terraform. Far more can go wrong at scale, but that’s where sound basics show their value.

Further Reading:

Cloud is just someone else’s server—make sure you know how it’s configured.