Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard H Boyd richardhboyd

View GitHub Profile
@richardhboyd
richardhboyd / Dockerfile
Created Sep 3, 2021
Dockerfile for running the AWS SAM translator locally
View Dockerfile
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 Feb 5, 2020
Codepipeline Example
View whatevs.ts
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);
View lambda.js
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