# Cloud Deployment

Source: https://bealinawaz.com/services/cloud-deployment/
By Ali Nawaz, freelance WordPress and Shopify developer in Lahore, Pakistan (https://bealinawaz.com/about-me/).

Cloud deployment for web applications on AWS and Google Cloud: compute, managed databases, storage, networking, environments and delivery workflows.

I deploy web applications on AWS and Google Cloud, using managed services where they save you work: container platforms for the app, managed databases, object storage for files and a CDN in front. The aim is the smallest setup that fits your traffic and team, with costs you can predict and access that's locked down.

Cloud platforms offer hundreds of services, and each one you add has a monthly cost and something to maintain. I start from how the app actually runs, how much downtime you can tolerate and who will look after it, then choose the fewest services that cover it. Scaling options get added when traffic shows they're needed.

## Cloud deployment services I offer.
- Application compute and networking: The app running on a managed container service or a virtual machine, with networking set so only the load balancer faces the internet.
- Managed database connections: A managed PostgreSQL or MySQL instance with automated backups, reachable only from the app.
- Object storage and delivery: Uploads and media in object storage, served through a CDN, with private files shared through short-lived signed links.
- Environment and release setup: Separate staging and production projects or accounts, deploys from your repository, and secrets held in the platform's secret manager.

## What a lean cloud setup gives you.
- Infrastructure matched to real demand
- Reduced operational surprises
- Secure environment boundaries
- A path to scale when evidence requires it

## Security settings I apply on every cloud deployment.

Most cloud security problems come from settings, not exotic attacks. These are on by default in my setups.

| Setting | What it prevents |
| --- | --- |
| Separate accounts or projects for staging and production | A test mistake touching live data |
| Least-privilege roles for the app and each person | One leaked key exposing the whole account |
| Multi-factor sign-in on every human account | Account takeover through a reused password |
| Database with no public address | Direct attacks on the database from the internet |
| Storage buckets private by default | Customer files becoming publicly readable |
| Secrets in the platform's secret manager | Credentials leaking through code or logs |
| Budget alerts | A runaway bill going unnoticed until the invoice arrives |

## AWS or Google Cloud.

Both run web applications well, so the choice usually comes down to what you already have. If your team or other systems already use AWS, staying there keeps billing, access and support in one place. On Google Cloud, Cloud Run is a simple way to run a containerized app: it scales with requests and can scale to zero when there's no traffic, so a quiet app or a staging copy costs little.

On AWS, I'd look at Lightsail for small, predictable apps, and containers on ECS with an RDS database when the app needs more. You see the options side by side before we commit.

## Keeping the cloud bill predictable.

Surprise bills usually come from a few places: databases sized for traffic that never came, idle servers left running, large data transfer out, and logs kept forever. I size resources from real usage, set retention on logs and backups, and turn on budget alerts so you're warned by email before a bill grows.

I also tag every resource by app and environment, so the monthly invoice shows what each part of the system costs.

## Moving from a VPS or shared hosting to the cloud.

A move starts with mapping what the app depends on: the runtime, the database, files on disk, cron jobs, email sending, and any hard-coded paths or IP addresses. Files on the server's disk usually move to object storage, and cron jobs become scheduled tasks. I rebuild the app in the new environment, copy the data, test on a temporary address, and switch DNS once everything checks out.

## Frequently asked questions

**Which cloud platform should I use?**
It depends on what you already use, how the app runs, which data services it needs, your team's experience, any compliance needs and your budget. I can outline a practical setup on each and compare them.

**Can you migrate from a VPS to cloud services?**
Yes. I map the runtime and data dependencies, plan the move in stages, test the new environment on a temporary address, and keep the cutover short.

**Is the cloud more expensive than a VPS?**
For a small, steady app it often is. It earns its cost when you need managed backups, automatic scaling, less server upkeep, or services that are hard to run yourself. I'll show you monthly estimates for both.

**Do you use infrastructure as code?**
For setups with more than a few resources, yes. Defining them in code keeps staging and production matched and lets the setup be rebuilt from scratch. For a single small service, the console plus written notes can be enough.

**How much does cloud deployment cost?**
The cost depends on the services you use, the number of environments, and the security, monitoring and deployment setup, and every job gets a fixed quote in US dollars. Cloud usage is billed by AWS or Google directly to your account.

**Who owns the cloud account?**
You do. I work through an access role or user you create for me, and you can revoke it once the handover is done.

**What support is included?**
Launch includes 15 days of free support, and ongoing care is available monthly or per task. Payment is half upfront and half after you've checked the final setup.
