Skip to content

Instantly share code, notes, and snippets.

View chrisj-au's full-sized avatar

Christopher Johnston chrisj-au

View GitHub Profile
@chrisj-au
chrisj-au / SCP-OrgPolicy.json
Last active December 21, 2020 21:15
AWS SCP Example Org Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "RequireMicroInstanceType",
"Effect": "Deny",
"Action": "ec2:RunInstances",
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringNotEquals": {
@chrisj-au
chrisj-au / Jenkinsfile
Last active December 23, 2020 06:28 — forked from gazoakley/Jenkinsfile
Jenkinsfile for running Terraform
pipeline {
agent any
parameters {
string(name: 'environment', defaultValue: 'default', description: 'Workspace/environment file to use for deployment')
string(name: 'version', defaultValue: '', description: 'Version variable to pass to Terraform')
booleanParam(name: 'autoApprove', defaultValue: false, description: 'Automatically run apply after generating plan?')
}
environment {