Skip to content

Instantly share code, notes, and snippets.

@lhitchon
lhitchon / Gemfile
Created December 14, 2012 04:18
Modular Sinatra app deployed to AppFog
source 'http://rubygems.org'
gem 'sinatra'
gem 'thin'
gem 'rack'
@lhitchon
lhitchon / Gemfile
Created January 23, 2013 23:57
Standalone ruby 1.9 app that uses redis
source 'https://rubygems.org'
gem 'rake'
gem 'redis'
gem 'cf-runtime'
source 'https://rubygems.org'
gem 'rails', '3.2.9'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
from cfnlint import CloudFormationLintRule
from cfnlint import RuleMatch
import yaml
import jmespath
class MyCheck(CloudFormationLintRule):
"""MyCheck"""
id = 'E737'
shortdesc = 'Check Something'
@lhitchon
lhitchon / rules.yml
Created October 18, 2018 21:27
Example of using config-lint for validating a CloudFormation ChangeSet
#
# Rules that can scan a CloudFormation ChangeSet and report a failure if a DynamoDB Table will be replaced
#
# Find config-lint here: https://github.com/stelligent/config-lint
#
# Example usage:
#
# aws cloudformation describe-change-set --stack-name <STACK_NAME> --change-set-name <CHANGESET_NAME> |
# config-lint -rules rules.yml -
#