Exercise in building and deploying a website with Pulumi.
Launch a Github Codespace, or start this lab in VSCode with the Devcontainer extension installed.
- Pulumi Login
pulumi login- Login to AWS
# for me I use aws sso login cli command
aws sso login- Create a new hugo project following the official quickstart
hugo new site hugo- 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/- Add the theme to the site configuration
echo 'theme = "ananke"' >> hugo/hugo.toml- Test the site locally
cd hugo && hugo server- Build the site
hugo --source hugo --destination public --cleanDestinationDirmakeBased on the blog from Christian Nunciato: