What Deployment Means

Deployment is the process of taking code from your laptop and running it reliably where real users can reach it.

Deployment is everything that happens between "the code works on my machine" and "real people are using it in production". It covers building your app, shipping the artifact to a server or service, configuring it, starting it, and keeping it healthy.

What a deployment includes

  • Build — compile or package your app into a runnable artifact (a zip, a Docker image, a static bundle).
  • Provision — create the servers, databases, and networking the app needs.
  • Release — put the new version live, ideally without downtime.
  • Operate — monitor logs, metrics, and roll back if something breaks.

Why AWS?

Amazon Web Services (AWS) gives you on-demand compute, storage, networking, and dozens of managed services. Instead of buying servers, you rent exactly what you need and pay per use. This guide takes you from a first static site all the way to automated, zero-downtime production pipelines.

Example

Example · bash
# The classic manual deploy — we will automate all of this
scp -r ./build user@server:/var/www/app
ssh user@server 'sudo systemctl restart app'

When to use it

  • A startup ships its Node.js API from a developer's laptop to an EC2 instance so customers can use it 24/7.
  • An e-commerce team automates deployment so every merged pull request goes live within minutes without manual steps.
  • A mobile backend is deployed to Lambda so it scales automatically during a flash sale without pre-provisioning servers.

More examples

Verify app builds cleanly

Confirms the application compiles successfully before any artifact is shipped to a server.

Example · bash
# Build the app and capture exit code
npm run build
echo "Build exit code: $?"

Copy artifact to EC2 via SCP

Shows the simplest manual deployment path: copy a compressed artifact to the server and unpack it.

Example · bash
# Ship a build artifact to a remote server
scp -i ~/.ssh/my-key.pem dist/app.tar.gz [email protected]:/opt/app/
ssh -i ~/.ssh/my-key.pem [email protected] \
  'tar -xzf /opt/app/app.tar.gz -C /opt/app/'

Sync build to S3 then invalidate CDN

Deploys a static build to S3 and immediately invalidates CloudFront so users receive the new version.

Example · bash
# Upload build output and bust the CDN cache
aws s3 sync dist/ s3://my-app-bucket/ --delete
aws cloudfront create-invalidation \
  --distribution-id E1EXAMPLE \
  --paths '/*'

Discussion

  • Be the first to comment on this lesson.
What Deployment Means — AWS Deployment | SoundsCode