Skip to content
Start a conversation Talk to us Menu
Start a conversation

Cloud and platform engineering

How to build a cloud foundation that grows with your business

Build it from separate environments, infrastructure as code, identity and secrets, monitoring and recovery, sized to your stage and ready for the next.

On this page (11)

A cloud foundation that grows with your business rests on five core parts: separate environments, infrastructure defined as code, identity and secrets management, monitoring, and backup with tested recovery. Network boundaries and cost controls run through all five. Build each one to the size your current stage needs, and make sure none of them blocks the next stage. Most of the pain founders feel later comes from skipping one of the five, not from choosing the wrong cloud.

What is a cloud foundation, in plain terms?#

It is the base your product stands on. Your application, your database, your background jobs and any AI features all run somewhere, and the foundation decides how that somewhere is organized: which accounts exist, how the networks are laid out, who can log in, how changes get made, and what happens when something breaks.

A good foundation is boring in the best way. Environments behave the same way every time. Nobody has to remember which setting they clicked six months ago. The term people use for the structured starting point is a landing zone: an account structure, networking, access rules and logging set up once, so every new workload starts from the same safe base.

A weak foundation is the opposite. It grows one request at a time. Someone creates a database by hand to unblock a demo. Someone else shares an admin key in a chat because it was quicker. It all works, right up to the day it does not.

Why does it matter more once you have real users?#

Because the cost of a mistake changes. Before launch, a broken environment costs you an afternoon. After launch, it costs you customers, and sometimes their data.

The pattern is familiar for a growing startup: infrastructure grew organically, deployment depends on one or two people, monitoring is thin, and nobody is quite sure what the environment costs to run. That is exactly the point where deployment, security, monitoring and cost controls have to be added, just as the business starts to depend on the system. Doing it then is harder than doing it a little earlier, but it is very doable if you go in the right order.

There is also a team reason. The day a second or third engineer starts changing infrastructure, knowledge in one person’s head stops scaling. A foundation turns that knowledge into something the whole team can read, review and repeat.

What goes into a foundation, and what can wait?#

Not everything on the list needs to exist on day one. Here is how we would size each part for an early product and for a growing one.

PartWhat it doesEnough for an early productAdd as you grow
EnvironmentsKeep changes away from customers until they are readyProduction separate from everything elseSeparate development, testing, staging and production
Infrastructure as codeDefines resources in reviewed, version-controlled filesThe core resources in code, applied by a pipelineReusable templates for new services and environments
Identity and secretsControls who and what can reach each resourceIndividual logins, no shared admin keys, a secrets storeIdentity federation and least-privilege roles per workload
NetworkDecides what is reachable from the internetOnly the front door is publicPrivate networking, controlled ingress, workload boundaries
MonitoringTells you something is wrong before customers doUptime checks, error alerts, central logsMetrics, tracing, service-level objectives, audit trails
Backup and recoveryGets you back after a failure or a mistakeAutomated backups you have restored at least onceAgreed recovery targets per system, regular restore tests
Cost controlsMakes the bill readableTags on resources and a budget alertCost allocation by workload and unit-cost tracking

The right column is not a to-do list for next quarter. It is what you grow into as users, data, team size and obligations increase. The left column is the part we would not skip, even for a first launch.

30 minutes, video call. Prefer to write? Send a message

How should accounts and networks be laid out?#

Give each environment its own account, or its own subscription or project, depending on the cloud. The account is the strongest boundary most clouds offer: permissions and budgets stop at its edge by default, so a mistake in testing cannot reach production. A small extra account for shared things, such as logging or the deployment pipeline, keeps those out of the workload accounts too.

Inside each account, draw workload boundaries, so one service cannot reach another unless it needs to. Then decide what the internet can see. The answer should be one front door, such as a load balancer or an API gateway, with everything behind it on private networking. Databases, internal services and admin tools stay private, and traffic reaches them only through controlled ingress. People get in through their own identity, not through an open port.

None of this needs to be elaborate for an early product. Two or three accounts, a private network per environment and one public entry point cover most startups for a long while, and they are much easier to set up now than to untangle later.

In what order should a startup build it?#

Order matters more than completeness. This is the sequence we would follow, because each step makes the next one safer.

Figure 1

Cloud foundation build orderFive steps in order: separate production, put infrastructure in code, lock down identity and secrets, add monitoring and recovery, then add cost controls.Separate prodCode itIdentityObserveCost
The order we would build a cloud foundation in, starting with what protects production.
  1. Separate production. If one environment does everything, a test can break a customer’s day. Splitting production out, with only the front door public, is the cheapest risk reduction there is.
  2. Put the infrastructure in code. Once production is separate, define it as infrastructure as code (publishing soon) so changes are reviewed and every environment can be rebuilt. Then automate deployments (publishing soon) through a pipeline, so releases stop depending on one person’s checklist.
  3. Lock down identity and secrets. Give people their own access, remove shared keys, move passwords and tokens into a secrets store, and grant only what each person and service needs. For a first product, security basics to build into an MVP (publishing soon) covers the same ground from the application side.
  4. Add monitoring and recovery. Alerts and logs come first, so you hear about problems before customers do. Then decide how long each system can be down and how much data you can afford to lose, which is what setting RTO and RPO (publishing soon) is about, and test that a restore actually works.
  5. Make cost visible. Tag resources and allocate spend to workloads. A foundation that nobody can afford to run is not finished. Our guide to why cloud bills keep growing (publishing soon) goes deeper.

If you already run a live product, the same order applies to a cleanup. It is also roughly the order in which things tend to break when a startup scales (publishing soon).

How much foundation is too much?#

More than you can operate. The goal is a coherent, fit-for-purpose setup, not the largest possible technology stack.

Three places where startups tend to overbuild:

  • Container orchestration before it is needed. Kubernetes is powerful and also a part-time job. Managed services or simple containers carry most early products comfortably. We wrote a whole post on whether your startup needs Kubernetes yet (publishing soon), and the honest answer is often “not yet”.
  • Several clouds at once. One is usually enough, as the next section explains.
  • Every environment on day one. Development, testing, staging and production is a sound target. For a two-person team, production plus one place to try things may be plenty for now.

The opposite mistake is just as expensive. Skipping code-defined infrastructure or tested backups to save a week tends to cost a month later. Infrastructure decisions are cheap to make well early and expensive to unwind once the business depends on them.

Should you use one cloud or several?#

One, in most cases. A single cloud is simpler to secure, monitor, automate and pay for, and your team only has to know one set of tools well. Pick the provider that fits your workloads, your team’s skills and what you already use, then go deep on it.

Several clouds, or a hybrid setup where some systems stay on your own servers, make sense when a real requirement justifies them. A large customer may need your product deployed in their cloud. A system may have to stay on premises for hardware, contractual or regulatory reasons. A specific managed service may only exist on one provider. In those cases, design the foundation so the same practices, such as code-defined infrastructure, one identity model and central monitoring, apply everywhere, and keep the number of places as small as the requirement allows.

What we would avoid is multi-cloud as insurance against a problem you do not have. It doubles the work today for a benefit that may never arrive.

What changes when you add AI features?#

The foundation stays the same, but two parts carry more weight. The first is how models run. If you call a hosted model through an API, the main changes are secrets for the API keys, limits on usage and monitoring of the calls. If you serve a model yourself, it usually runs as a containerized inference service with its own scaling rules, and sometimes on specialized hardware, so it needs its own workload boundary and capacity plan.

The second is cost. Inference is paid for on every call, so it grows with usage in a way servers do not. Track inference cost per feature from the first release, next to the rest of the bill, and you will see early whether a feature costs more to run than it earns.

How do you know your foundation is working?#

Ask four questions. If you can answer each one with a yes, the foundation is doing its job.

  • Could you rebuild an environment from code? If production disappeared, could you recreate its infrastructure from what is in version control, without anyone’s memory?
  • Can you say who can reach what? Is there a clear list of people and services with access to production, and is each one limited to what it needs?
  • Have you restored from a backup recently? Until you have, you do not know it works.
  • Do you know what each workload costs? Not the total bill: the cost of each product, service or environment.

A startup is about to sign its first larger customer, who has sent a security questionnaire. Production and testing share one account, and two engineers hold the admin keys.

We would separate production first, move access to individual least-privilege logins and a secrets store, and put the core infrastructure into code, so the questionnaire gets true answers and the product keeps shipping.

How does Nexstella approach a cloud foundation?#

We start from your workloads, not from a preferred platform. Our cloud foundation work begins with an assessment of what runs today, who can reach it and what the business needs from it. Then we design the environments, network and identity model, build the foundation as code with peer-reviewed changes, add deployment, secrets, monitoring and backup controls, and hand it over with documentation your team can use.

We work on AWS, Microsoft Azure and Google Cloud, and we weigh managed-service convenience against portability, operational simplicity, security and cost. We also tell you when your current setup is enough, or when an expensive architecture is not needed for your stage. Helping a business prepare for growth without overengineering before it needs to is the point, and it is the same reason our work with startups and scale-ups keeps product priorities in view while the infrastructure improves.

If you want to see how a full cleanup usually runs, phase by phase, read what a cloud foundation engagement looks like (publishing soon). If you are not in the cloud yet, start with what to decide before you migrate (publishing soon). And if this would be your first engagement with a partner, what a first engagement looks like for a startup explains how it starts, and how to brief a technology partner (publishing soon) shows what to bring.

What should you do next?#

Do these three things, in this order:

  1. Answer the four questions above honestly, on one page. The ones you cannot answer with a yes are your starting list.
  2. Fix the first gap in the build order, not the most interesting one. Usually that is separating production or getting infrastructure into code.
  3. Talk it through with an engineer. The first step with us is a free conversation: tell us what runs where today and what worries you, and we will tell you plainly what we would do first, and what can wait.

Questions

As soon as real users depend on the product, or a second engineer starts changing infrastructure. Before that, keep it simple, but keep production separate and keep your setup written down as code where you can.

Not at first. A foundation defined as code, with automated pipelines and written runbooks, can be run by product engineers. A dedicated role becomes worth it as the number of services, environments and obligations grows.

The one that fits your workloads, your team and your existing investments. AWS, Microsoft Azure and Google Cloud can all carry a solid foundation; the practices matter more than the logo on the console.

Yes, and that is the normal case. The work goes in stages, starting with the parts that protect production, so the product team keeps releasing while the base underneath gets stronger.

Talk through your cloud setup

Tell us what runs where today and what needs to change. An engineer will help you weigh the options and the trade-offs.

30 minutes, video call. Prefer to write? Send a message

What happens next

  1. You pick a time, or send us a message.
  2. A person at Nexstella reads what you shared before we talk.
  3. You leave with a clear next step, even when that step is to wait.