Skip to content

Instantly share code, notes, and snippets.

View piyushjaware's full-sized avatar

Piyush J piyushjaware

View GitHub Profile
@piyushjaware
piyushjaware / lambda-custom-resource.yml
Last active May 4, 2020 15:49
CFN Lambda backed Custom Resource to inject dynamic values
AWSTemplateFormatVersion: "2010-09-09"
Description: Custom Ressource Tester Template
Parameters:
ApiName:
Type: String
Description: Enter the appsync api name
Resources:
MyAPI:
Type: AWS::Serverless::Api
Properties:
Name: MyAPI
StageName: Default
EndpointConfiguration: REGIONAL
Auth:
ApiKeyRequired: true
DefinitionBody:
openapi: 3.0.0
MyApi:
Type: 'AWS::Serverless::Api'
Properties:
StageName: '<stage name>'
DefinitionBody:
swagger: '2.0'
info:
title: '<title>'
paths:
/<somepath>: