Skip to content

Instantly share code, notes, and snippets.

View richardhboyd's full-sized avatar

Richard H Boyd richardhboyd

View GitHub Profile
@richardhboyd
richardhboyd / Dockerfile
Created September 3, 2021 22:14
Dockerfile for running the AWS SAM translator locally
FROM python:3.7.9
ENV AWS_DEFAULT_REGION=us-west-2
RUN git clone https://github.com/aws/serverless-application-model.git
COPY sample-template.yaml /serverless-application-model/sample-template.yaml
WORKDIR serverless-application-model
RUN pip install boto3
RUN pip install -e '.[dev]'
@richardhboyd
richardhboyd / whatevs.ts
Created February 5, 2020 01:04
Codepipeline Example
import * as cc from '@aws-cdk/aws-codecommit';
import * as cb from '@aws-cdk/aws-codebuild';
import * as cp from '@aws-cdk/aws-codepipeline';
import * as cpActions from '@aws-cdk/aws-codepipeline-actions';
import * as cdk from '@aws-cdk/core';
export class PipelineVariablesStack extends cdk.Stack {
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
super(scope, id, props);
@richardhboyd
richardhboyd / lambda.js
Created December 13, 2019 13:53
My Node8 Lambda
This file has been truncated, but you can view the full file.
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache