Skip to content

Instantly share code, notes, and snippets.

View tomvachon's full-sized avatar

Thomas Vachon tomvachon

View GitHub Profile
@tomvachon
tomvachon / stack.yml
Created August 16, 2017 11:16
AWS IAM Policy for Tag Restricted EBS & EC2
Type: AWS::IAM::ManagedPolicy
Properties:
Description: AWS Policy for EC2 Instance, EBS Creation with Tagging required
PolicyDocument:
Version: "2012-10-17"
Statement:
# This allows the untaggable calls to work when RunInstances is the actor
-
Effect: Allow
Action:

Keybase proof

I hereby claim:

  • I am tomvachon on github.
  • I am vachon (https://keybase.io/vachon) on keybase.
  • I have a public key whose fingerprint is ED11 8AD2 C2B5 4C63 EC90 37EF B469 75B6 EF6E 0A37

To claim this, I am signing this object:

@tomvachon
tomvachon / gist:8147336
Created December 27, 2013 14:07
Upstart example
start on runlevel [2345]
stop on runlevel [06]
#should i reboot it for you if it crashes?
respawn
# reboot it 4 times wait 5 seconds
respawn limit 4 5
#If your proc forks uncomment
#expect fork
@tomvachon
tomvachon / gist:2954943
Created June 19, 2012 15:53
Puppet & initsev weirdness
root@admin:~# /sbin/initctl --version
initctl (upstart 1.5)
Copyright (C) 2012 Scott James Remnant, Canonical Ltd.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@admin:~# echo $?
0
root@admin:~# puppet agent --test
info: Retrieving plugin