• Cloud Computing

Deploying to AWS: From Local to Cloud

A practical walkthrough of deploying a full-stack application using AWS services.

By Marc Ocampo11 min read

Moving from localhost to a production AWS environment can be intimidating. Here's my step-by-step approach that minimizes surprises.

Step 1: Environment Parity

Use Docker locally to mirror your production environment. If it works in the container, it'll work in EC2. No more "but it works on my machine" moments.

Step 2: Infrastructure as Code

I define everything in configuration files. Security groups, RDS settings, S3 bucket policies: all version controlled. Rebuilding the entire infrastructure takes minutes, not hours.

Set up monitoring before you need it. CloudWatch logs and alarms cost almost nothing but save everything when something breaks at 2 AM.

Step 3: Database Migration Strategy

Never run migrations directly in production. Test them locally, then in a staging environment, then production. Laravel's migration system makes this disciplined approach painless.

Step 4: Monitoring from Day One

CloudWatch logs and basic alarms cost almost nothing but save everything when something breaks at 2 AM. Set them up before you need them.

The cloud is complex, but methodical deployment makes it manageable.

Continue reading

All writing
  1. Cloud Computing

    How I Passed the AWS Cloud Practitioner Exam in 2 Weeks

    A structured approach to mastering cloud fundamentals, from study strategies to exam-day tips.

    5 min read

  2. Cybersecurity

    The Lock Was Set to 004

    A private key was the number 4. What could that let an attacker do, and what should we check in our own systems?

    9 min read

  3. Artificial Intelligence

    You Don't Have to Pay to Start, Because Open Models Are Better Than You Think

    Open models are better than most people think, and you don't need a subscription to start building.

    10 min read