Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.04 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.04 KB

HYOB (Host Your Own Blog)

Overview

Contains scripts/templates necessary for hosting your own blog; where hosting can be anything from owning your own hardware to leasing it from a cloud provider.

Details

This is inspired from https://news.ycombinator.com/item?id=19947068

Usage

AWS + Hugo

Run:

aws cloudformation create-stack \
	--stack-name self-hosted-blog \
	--template-body file://<(curl -s https://raw.githubusercontent.com/jsanders67/host-your-own-blog/master/frameworks/hugo/aws/templates/singleserver.yml) \
	--parameters \
		ParameterKey=KeyName,ParameterValue=<YOUR KEY HERE> \
		ParameterKey=RepositoryUrl,ParameterValue=<YOU BLOG GIT URL HERE>.git && \
aws cloudformation wait  stack-create-complete \
	--stack-name self-hosted-blog && \
aws cloudformation describe-stacks \
	--stack-name self-hosted-blog \
	--output text \
	--query "Stacks[0].Outputs[?OutputKey=='InstanceIPAddress'].OutputValue"

The ip address outputted can be pasted into a browser and your blog will appear. Viola!

See: