# Host a .NET Blazor WebAssembly App on Amazon S3 and Amazon CloudFront

DevFeed: [Host a .NET Blazor WebAssembly App on Amazon S3 and Amazon CloudFront](<https://devfeed.tech/articles/host-a-net-blazor-webassembly-app-on-amazon-s3-and-amazon-cloudfront-49975.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/dotnet/host-a-net-blazor-webassembly-app-on-amazon-s3-and-amazon-cloudfront/>)

Author: Shibu Thomas

Published: 2026-07-09T11:55:38Z

Content type: tutorial

Language: en

Sources: [.NET on AWS Blog](<https://devfeed.tech/sources/net-on-aws-blog.md>)

Topics: [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [.NET](<https://devfeed.tech/topics/net.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [cloud-infrastructure](<https://devfeed.tech/topics/cloud-infrastructure.md>), [Web app](<https://devfeed.tech/topics/webapp.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [amazon-cloudfront](<https://devfeed.tech/tags/amazon-cloudfront.md>), [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [amazon-simple-storage-service-s3](<https://devfeed.tech/tags/amazon-simple-storage-service-s3.md>), [aws](<https://devfeed.tech/tags/aws.md>), [blazor](<https://devfeed.tech/tags/blazor.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [net](<https://devfeed.tech/tags/net.md>), [storage](<https://devfeed.tech/tags/storage.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>)

## AI overview

A tutorial for hosting a .NET Blazor WebAssembly application as static files in a private Amazon S3 bucket and distributing it through Amazon CloudFront. It uses Terraform to provision the infrastructure and covers deployment automation, MIME types, cache headers, cache invalidation, origin access control, and client-side routing for deep links.

## Source excerpt

With Blazor WebAssembly (WASM), you build interactive web applications entirely in C#, no JavaScript required. After compilation, a Blazor WASM application is just a folder of static files: HTML, CSS, JavaScript, and WASM binaries. Because the output is entirely static, you can host it on AWS with Amazon Simple Storage Service (Amazon S3) and Amazon [...]