# Source from https://github.com/capitalone/cloud-custodian/tree/master/tools/c7n_mailer | |
git clone https://github.com/capitalone/cloud-custodian | |
# Not mentioned in docs, you should run from the root of the repo | |
cd cloud-custodian | |
virtualenv c7n_mailer | |
source c7n_mailer/bin/activate | |
# In the README, it mentions to instead `cd c7n_mailer` but that goes to the virualenv environment, that has no requirements.txt |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
#! /bin/bash -eu | |
EXTERNAL_URL_HOST_NAME="$1" | |
ADMIN_USERNAME="$2" | |
ADMIN_PASSWORD="$3" | |
CONCOURSE_VERSION=${CONCOURSE_VERSION:-v1.1.0} | |
apt-get update | |
apt-get install -y postgresql postgresql-contrib |
--- | |
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Creates a stack containing an IAM role used to grant | |
Datadog monitoring access to AWS infrastructures. See | |
http://docs.datadoghq.com/integrations/aws/#installation for | |
details. | |
Parameters: | |
DatadogAwsAccountId: |
#!/usr/bin/env python | |
"""Convert CSV policies into AWS JSON format.""" | |
import json | |
import csv | |
POLICIES = 'terraform.csv' | |
CRUD_COL = 2 | |
ACTION_COL = 3 |
#@ /etc/quagga/bgpd.conf (Centos & Ubuntu) | |
hostname <Local OS hostname> | |
password <Any random phrase> | |
enable password <Any random phrase> | |
! | |
log file /var/log/quagga/bgpd | |
!debug bgp events | |
!debug bgp zebra | |
debug bgp updates |
sudo: required | |
language: ruby | |
services: | |
- docker | |
before_install: | |
- echo "Testing Docker Hub credentials" | |
- docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD |
{ | |
"APIGatewayServiceRolePolicy": { | |
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy", | |
"AttachmentCount": 0, | |
"CreateDate": "2019-10-22T18:22:01+00:00", | |
"DefaultVersionId": "v6", | |
"Document": { | |
"Statement": [ | |
{ | |
"Action": [ |
#!groovy | |
# Best of Jenkinsfile | |
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
node { | |
} |