Blog for TechDebug.com
Deployed via Github actions on push
to main
branch.
- Requires existing S3 state bucket
Generate lockfile and commit it.
export accountId=$(aws sts get-caller-identity --query Account --output text)
terraform init \
-backend-config="region=ap-southeast-2" \
-backend-config="workspace_key_prefix=techdebug-com" \
-backend-config="bucket=terraform-state-${accountId}" \
-backend-config="key=techdebug-com-terraform.tfstate" \
-backend-config="dynamodb_table=terraform-state"
- Requires IAM role for GH Actions to be setup before it will run.
AWS Account ID must be published in GitHub secret AWS_ACCOUNT_ID
Ensure Hugo is installed Regen archive pages with:
pnpm install
pnpm generate-archives
Serve with pnpm serve