Skip to content

AWS Infrastructure as Code for Personal Website with Serveless (AWS) NextJS 🧑‍💻

License

Notifications You must be signed in to change notification settings

ManueleNolli/PersonalWebsiteAws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Website CDK Infrastructure

This project contains the Infrastructure as Code for my Personal Website https://www.manuelenolli.ch using the AWS Cloud Development Kit (CDK).

Requirements

  • node: 20.16.0
  • yarn: 1.22.22

Installation and Usage

yarn install
yarn deploy:first # will create the S3 buckets

Once NextJS is built and pushed to the S3 bucket (Just execute the Github action), you can deploy the rest:

yarn deploy

AWS Infrastructure

The website is hosted on AWS using the following services:

* These services are not implemented in this project, the CDK stack creates until the CloudFront distribution, this is because the additional services are customisable and I added them manually.I personally followed this Developer Guide.

The AWS Infrastructure can be seen in the following diagram: AWS Infrastructure

Must do manually

As mentioned above, some services are not implemented in this project, if you want to deploy the infrastructure as I did, you need to follow these steps:

  1. Create your domain in Route 53 as an Hosted Zone (you should configure the NS records in your domain provider)
  2. Create a certificate in ACM for your domain (you should validate the certificate by adding a CNAME record in Route 53)
  3. Enable WAF in CloudFront and configure the rules as you wish

About

AWS Infrastructure as Code for Personal Website with Serveless (AWS) NextJS 🧑‍💻

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published