Our great sponsors
-
parsa-hugo
Parsa is a personal blog theme powered by Hugo. It also can be used for portfolio website.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
When the new project is created, a directory quickstart is created which contains a blank project. To keep this post concise, I'll focus on building and deploying the site and cover customization in another part. Before starting the server, we need to select a theme and create our first post. Add a theme by cloning an existing theme in the themes directory. For my own blog, I picked parsa-hugo.
When I bootstrapped my first blog, I picked Hexo, it's an open source project, powered by NodeJS. I had a quick look at it, and it ticked all my boxes: Markdown, statically generated pages and a ton of ready-to-use themes. The statically generated pages will be important later on, so hang in there. Hexo worked great, 10/10 would recommend. The blog is still up today with zero maintenance.
$ cd quickstart $ git init $ git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
You might have seen some tutorials on how to set up S3 buckets using the AWS Console. This works fine, but I'm a firm believer of managing your resources with code. I've chosen the native solution of AWS, called AWS CloudFormation. This makes it easier to reproduce the setup if I ever need to tear it down of move it to another account or region. Below is the full CloudFormation template, I've used a framework called Troposphere, a Python library that creates CloudFormation.
You might have seen some tutorials on how to set up S3 buckets using the AWS Console. This works fine, but I'm a firm believer of managing your resources with code. I've chosen the native solution of AWS, called AWS CloudFormation. This makes it easier to reproduce the setup if I ever need to tear it down of move it to another account or region. Below is the full CloudFormation template, I've used a framework called Troposphere, a Python library that creates CloudFormation.
To upload the website in the public directory to S3, the easy way is to go with the AWS CLI. After installing and configuring the CLI, use following command to upload the website to S3. To get the name of your S3 bucket, head over to the S3 console. You'll see that a new bucket was created by CloudFormation.
Related posts
- Terraform vs. AWS CloudFormation
- Deploy config rules across your organization
- Authorization and Amazon Verified Permissions - A New Way to Manage Permissions Part XIII: Cloudformation
- Generative (A)IaC in the IDE with Application Composer
- AWS OIDC auth fails when role trust relationship has app_id configured