Skip to content

Instantly share code, notes, and snippets.

View colddaemon1's full-sized avatar
😃

Nick Little colddaemon1

😃
View GitHub Profile
@colddaemon1
colddaemon1 / domainjoin_params.json
Created November 14, 2018 20:02
Domain Join Existing VM's to Azure AD - Parameters
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"value": "Australia East"
},
"vmList": {
"value": "vm01,vm02,vm03"
},
@colddaemon1
colddaemon1 / hugodeploy.sh
Created November 5, 2022 09:05
Deploy Hugo to AWS S3 and Invalidate CloudFront cache
#!/bin/bash
set -e
#The “set –e” allows an exception to throw where it finds the error
#and then the halt execution. Error message and line number displayed (in lieu of me using more robust error handling logic)
# Execute this script your Hugo site directory (e.g mine is /%fullcanoicalpath%/nicklittle
# Using AWS CLI V2, setup using `aws configure sso` FIRST
#Variable Declaration, add your CloudFront distribtuion ID, S3 bucket name, and AWS Profile Name