Skip to content

Instantly share code, notes, and snippets.

View sspocketgalaxy's full-sized avatar

Mike Engelhart sspocketgalaxy

View GitHub Profile
@sspocketgalaxy
sspocketgalaxy / api-gw-ip-clearance-policy-cf.yaml
Created September 27, 2021 14:23
Simple Proxy API Gateway CloudFormation template for showing how to use an IP clearance on an endpoint to restrict and control access to the API.
---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
PassThroughProxyEndpoint:
Description: The proxy URL
Type: String
Default: "https://jsonplaceholder.typicode.com/{proxy}"
ApiGatewayDeploymentStageName:
Description: The API Gateway stage for this deployment
Type: String
@sspocketgalaxy
sspocketgalaxy / ip-address-template-parameters-cf.yaml
Last active September 27, 2021 14:32
This is a simple CloudFormation template for parameters when configuring IP clearance of an API running in AWS API Gateway
---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
ApiIPAddressClearance:
Description: Comma separated list of IP addresses that are allowed to access this API
Type: String
Default: "8.8.8.8,8.8.8.4"
@sspocketgalaxy
sspocketgalaxy / API Gateway Tests.postman_collection.json
Created September 18, 2021 01:37
Postman collection file for testing the output of the SCALABLE API ENDPOINTS WITH API GATEWAY AND SQS blog at https://blog.pocketgalaxy.io
{
"info": {
"_postman_id": "2b846664-4cbc-4548-b1c7-af3d117496d1",
"name": "API Gateway Tests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Proxy POST",
"request": {
@sspocketgalaxy
sspocketgalaxy / api_gateway_to_sqs_cf.yaml
Last active October 10, 2023 20:14
API Gateway to SQS CloudFormation Template
---
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
QueueName:
Description: The queue name for integration with API Gateway
Type: String
Default: api-gateway-queue
PassThroughProxyEndpoint:
Description: The proxy URL
Type: String