Skip to content

Instantly share code, notes, and snippets.

View ryanycoleman's full-sized avatar

Ryan Coleman ryanycoleman

  • Stackery
  • Portland, OR
View GitHub Profile
@ryanycoleman
ryanycoleman / cfn-custom-resource.yaml
Created November 19, 2020 16:45
A snippet of a Lambda function that uses cfn-custom-resource to respond appropriately to CloudFormation when invoking a Lambda on deployment
# For more info, read:
## https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html
## https://www.npmjs.com/package/cfn-custom-resource?activeTab=readme
AWS = require('aws-sdk');
const ECS = new AWS.ECS({ region: "us-west-2" });
const SM = new AWS.SecretsManager({ region: "us-west-2" })
const cfnCR = require('cfn-custom-resource');
const { sendSuccess, sendFailure, CREATE, UPDATE, DELETE } = cfnCR;
exports.handler = async (event, context) => {
@ryanycoleman
ryanycoleman / 1-stackery-canvas.html
Last active July 10, 2020 04:22
Stackery's public design canvas can be embedded as an iframe to provide an interactive version of any AWS SAM template. https://app.stackery.io/editor
<iframe title='Stackery canvas of SAM template'
width='100%'
height='500'
frameBorder='0'
src='https://app.stackery.io/editor/design?owner=stackery&repo=quickstart-dotnet&file=template.yaml'>
</iframe>
<!-- The URL params assume GitHub today, where owner is the GH org, repo is the repository name, and file is the SAM template to be rendered -->
<!-- E.g. https://github.com/stackery/quickstart-dotnet/blob/master/template.yaml -->
@ryanycoleman
ryanycoleman / links
Last active March 28, 2018 17:44
links from 2014 puppetconf contributor summit lightning talks
@ryanycoleman
ryanycoleman / metadata.json
Created March 24, 2014 18:09
Example metadata.json with compatibility expressions
{
"requirements": [
{ "name": "pe", "version_requirement": "3.x" },
{ "name": "puppet", "version_requirement": "3.x" }
],
"operatingsystem_support": [
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"5",
class file_resource {
file { 'from file server':
ensure => file,
# source => tells the agent that it's meant to retrieve this file from the Puppet Master during catalog application.
# See http://docs.puppetlabs.com/guides/file_serving.html for more.
# This will not compile as written unless you create file.txt in (for PE's example) /etc/puppetlabs/puppet/modules/file_resource/files/
source => 'puppet:///modules/file_resource/file.txt',
}
@ryanycoleman
ryanycoleman / foo.md
Created September 16, 2013 22:40
just playing with markdown rendering in gist format

heading 1

plain text

@ryanycoleman
ryanycoleman / centos_6_vagrantfile
Last active December 21, 2015 08:09
PuppetConf DevDay 2013 Cut-sheet
# -*- mode: ruby -*-
# vi: set ft=ruby :
# For the most part, this is a stock config from `vagrant init`
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@ryanycoleman
ryanycoleman / community_downloads-07-12-2013.txt
Last active December 19, 2015 16:59
Forge module download counts, not from the puppetlabs namespace, sorted in ascending order.
[["rtyler/puppet", 9],
["wcooley/fail_unconfigured", 18],
["bobsh/puppetdb", 30],
["cloudsmith/demoapp", 51],
["gioppoluca/wso2am", 55],
["gioppoluca/wso2bam", 59],
["ngiger/elexis_cockpit", 60],
["gioppoluca/moodle", 60],
["reidmv/mcollective", 61],
["viirya/storm", 61],
@ryanycoleman
ryanycoleman / community_downloads.txt
Created July 12, 2013 20:46
community download counts, ascending order
[["rtyler/puppet", 9],
["wcooley/fail_unconfigured", 18],
["bobsh/puppetdb", 30],
["cloudsmith/demoapp", 51],
["gioppoluca/wso2am", 55],
["gioppoluca/wso2bam", 59],
["ngiger/elexis_cockpit", 60],
["gioppoluca/moodle", 60],
["reidmv/mcollective", 61],
["viirya/storm", 61],
Send your Puppet Enterprise reports and inventory to Satellite: https://forge.puppetlabs.com/puppetlabs/satellite_pe_tools/readme
Blog post about the PE<->Satellite Integration: https://puppetlabs.com/blog/puppet-enterprise-and-red-hat-satellite-available-now
Blog post about the support agreement between RedHat and Puppet Labs: https://puppetlabs.com/blog/puppet-enterprise-integrates-red-hat-satellite