Skip to content

Instantly share code, notes, and snippets.

View ryanycoleman's full-sized avatar

Ryan Coleman ryanycoleman

  • Stackery
  • Portland, OR
View GitHub Profile
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
@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 / 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) => {