TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A collection of shell/Terraform scripts to host a web site on AWS

11 pointsby klinquistover 1 year ago
Regularly register a domain and want to put some web content there?<p>This repo includes:<p>A shell script that:<p>* Adds a hosted zone in Route53 for your domain * Prints the NS records for your domain so you can update your registrar<p>AND<p>A Terraform module that does the following:<p>* Creates an S3 bucket (domainname) * Creates a second S3 bucket for logs (domainname-logs) with a lifecycle policy to delete logs after 15 days * Creates a CloudFront distribution * Creates an SSL certificate for the domain name (adding www. as a subject alternative name) * Creates a Route53 record for the domain name (adding www. as a CNAME) * Creates an IAM user &amp; policy for a github action. Warning: Check the permissions, they are too liberal right now :). * (optional) Creates Route53 MX records and TXT validation record for Google Workspace<p>AND<p>A shell script that:<p>* Adds AWS credentials to your github repo secrets so you can use a github action to deploy your website to the bucket (using something like Jekyll).

no comments

no comments