Skip to content

Instantly share code, notes, and snippets.

View DanielChalk's full-sized avatar

Daniel Chalk DanielChalk

View GitHub Profile
@DanielChalk
DanielChalk / deploy.sh
Last active April 20, 2021 15:40
Terraform Environment Modules (using modules to ecapsulate configuration)
# Looks like we are deploying one of our environments
cd terraform/environments/dev/us-east-1
# Initialise (sets up backend and downloads modules if any)
terraform init
# Let's see what's going to happen
terraform plan -out terraform.plan
# If you're happy, run the following
terraform apply terraform.plan
@DanielChalk
DanielChalk / README.md
Last active January 27, 2020 12:39
A possible API for a Terraform provider that wraps Terraform.

Wrapper.tf

As Terraform is a state machine, there is no reason Terraform couldn't wrap and execute itself.

Problems with Terraform

  • Workspaces are shit!
  • Configuring backends are a pain!
  • You have to embed modules into modules to track cascading changes between them
@DanielChalk
DanielChalk / keybase.md
Created August 30, 2017 18:56
keybase.md

Keybase proof

I hereby claim:

  • I am DanielChalk on github.
  • I am dchalk (https://keybase.io/dchalk) on keybase.
  • I have a public key whose fingerprint is 1944 415D 991D 6186 230F CA4D B35B 6C34 823C C09A

To claim this, I am signing this object:

@DanielChalk
DanielChalk / canvas-resize.html
Last active December 21, 2015 20:19
Resizing an image using Canvas with jQuery and Kinetic.
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
<script src="http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v4.6.0.min.js" type="text/javascript"></script>
<script src="canvas-resize.js" type="text/javascript"></script>
</head>
<body>
<div id="header"></div>
</body>