Skip to content

usrbinkat/pulumi-hugo-iac-logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pulumi Next Level - IaC Logic

Exercise in building and deploying a website with Pulumi.

Before you start

Launch a Github Codespace, or start this lab in VSCode with the Devcontainer extension installed.

Steps:

Pulumi Setup

  1. Pulumi Login
pulumi login
  1. Login to AWS
# for me I use aws sso login cli command
aws sso login

Create a new Hugo static site from templates

  1. Create a new hugo project following the official quickstart
hugo new site hugo
  1. Add a theme to your new site
git clone https://github.com/theNewDynamic/gohugo-theme-ananke.git hugo/themes/ananke && rm -rf hugo/themes/ananke/.git

# Copy the example site content
cp -r hugo/themes/ananke/exampleSite/* ./hugo/
  1. Add the theme to the site configuration
echo 'theme = "ananke"' >> hugo/hugo.toml
  1. Test the site locally
cd hugo && hugo server
  1. Build the site
hugo --source hugo --destination public --cleanDestinationDir

Create or Select a Pulumi Stack

make

Attribution

Based on the blog from Christian Nunciato:

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Generated from pulumi/devcontainer