Skip to content

Instantly share code, notes, and snippets.

View moduspwnens's full-sized avatar

Benn Linger moduspwnens

View GitHub Profile
---
AWSTemplateFormatVersion: '2010-09-09'
Description: An example API with a single resource and Lambda-backed method.
Mappings:
StaticVariables:
Main:
DummyStageName: DummyStage
ExampleApiHttpMethod: GET
StageName: v1
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Sample CodePipeline project
Resources:
MainRepository:
Type: AWS::CodeCommit::Repository
Properties:
RepositoryName:
Parameters:
BaseStackName:
Description: Base stack name.
Type: String
Default: base-stack
Resources:
MainBucket:
Type: AWS::S3::Bucket
Properties:
Resources:
# Stack requires at least one resource. Ignore this.
IgnoreBucket:
Type: AWS::S3::Bucket
Outputs:
Environment:
Value: "testvar1"
Export:
---
AWSTemplateFormatVersion: '2010-09-09'
Resources:
SiteBucket:
Type: AWS::S3::Bucket
Properties:
WebsiteConfiguration:
ErrorDocument: error.html
IndexDocument: index.html
"""S3BucketWebSiteDomainFormatterFunction
Used as a CloudFormation custom resource to return the domain of a URL.
"""
from __future__ import print_function
import json
import urlparse
@moduspwnens
moduspwnens / gist:11964067bc66374b0e94a1570271a7bf
Last active October 22, 2016 02:19
Sample API Gateway Method
{
"WebChatApiUserIdCreateMethod": {
"Type": "AWS::ApiGateway::Method",
"Properties": {
"AuthorizationType": "NONE",
"ResourceId": {
"Ref": "WebChatApiUserResource"
},
"RestApiId": {
"Ref": "WebChatApi"

Keybase proof

I hereby claim:

  • I am moduspwnens on github.
  • I am bennlinger (https://keybase.io/bennlinger) on keybase.
  • I have a public key whose fingerprint is 17DA F826 5782 7D08 FFF9 D911 652A 0CC0 942F 36A5

To claim this, I am signing this object: