๐ How to Deploy a Bun Website on AWS Amplify
In the ever-evolving JavaScript ecosystem, Bun has quickly made a name for itself with blazing-fast performance and a developer-friendlyโฆ
๐ How to Deploy a Bun Website on AWS Amplify
In the ever-evolving JavaScript ecosystem, **Bun has quickly made a name for itself with blazing-fast performance and a developer-friendly experience. If youโre experimenting with Bun and wondering how to deploy your project effortlessly, AWS Amplify** offers a powerful and easy-to-use hosting platform.
In this article, Iโll walk you through the steps to deploy a Bun-powered website to AWS Amplify.
๐ง Prerequisites
Before we get started, make sure you have the following:
- A Nuxt 3 project built with Vue 3, using Vite as the build tool and running on the Bun runtime.
(This is the stack weโve used in our project, and it works great together!) If you donโt have one yet, you can follow along with this sample project.
- A GitHub account (Amplify connects directly to your repo)
- An AWS account with access to Amplify
๐ฏ Deploy with AWS Amplify
- Select Your Source Code Provider
In this example, weโre using GitHub as our source code provider. Choose GitHub, authorize Amplify if prompted, and proceed to the next step.

- Choose Repository & Branch
Select the repository and the branch (usually develop or main) you want to deploy.

- Configure App Settings (Amplify Build Settings)
If your repository does not already contain an amplify.yml file, AWS Amplify will auto-generate one for you in the Console UI.
โ ๏ธ If you include your own
amplify.ymlin the GitHub repo, Amplify will completely ignore the default settings from the Console and follow your YAML file instead โ including the install, build, test, and deploy steps.

You can refer to the custom amplify.yml file we used below (adjust based on your project structure):
version: 1
frontend:
phases:
preBuild:
commands:
- curl -fsSL https://bun.sh/install | bash
- export BUN_INSTALL="$HOME/.bun"
- export PATH="$BUN_INSTALL/bin:$PATH"
- bun install
build:
commands:
- export BUN_INSTALL="$HOME/.bun"
- export PATH="$BUN_INSTALL/bin:$PATH"
- bun run build
artifacts:
baseDirectory: .amplify-hosting
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- ~/.bun/**/*
- Finalize & Deploy
Once all the settings are configured, review the summary.
Click โSave and deployโ โ Amplify will start the build process, and your Bun-powered Nuxt site will be live in just a few minutes!

๐งช Troubleshooting Tips
- Bun not found in build environment? Be sure your
curlinstall script runs as apreBuildhook in the Amplifyamplify.yml. - Wrong output path? Nuxtโs output directory is
.output/publicby default โ but confirm this in your Amplify build.

๐ Letโs Connect
If youโre building with Bun or exploring modern deployment workflows, Iโd love to hear your thoughts! Drop a comment, connect on LinkedIn.
๋ฉํ๋ฐ์ดํฐ
- post_id
- 9853484d68f6
- slug
- how-to-deploy-a-bun-website-on-aws-amplify-9853484d68f6
- url
- https://medium.com/@shubhamgupta5/how-to-deploy-a-bun-website-on-aws-amplify-9853484d68f6
- canonical_url
- https://medium.com/@shubhamgupta5/how-to-deploy-a-bun-website-on-aws-amplify-9853484d68f6
- author_url
- https://medium.com/@shubhamgupta5
- status
- ok
- fetched_at
- 2026-07-29 20:50:29