Skip to content

Instantly share code, notes, and snippets.

View AugustoCalaca's full-sized avatar

Augusto Calaca AugustoCalaca

View GitHub Profile

AWS Fargate Docker Simple Deployment Setup with SSL termination

How to:

  • create a Docker-based AWS Fargate/ECS deployment
  • without the Docker containers having a public IP
  • with an Application Load Balancer as reverse proxy / SSL termination proxy sitting in front of the containers

For Fargate/ECS to be able to access your Docker images hosted on ECR (or somewhere else) you'll have to allow outbound internet access to the Fargate subnets. Here's how you do it.

@AugustoCalaca
AugustoCalaca / graphiql-over-ws.html
Created January 14, 2022 18:28 — forked from enisdenjo/graphiql-over-ws.html
GraphiQL ❤️ graphql-ws
<!--
* Copyright (c) 2021 GraphQL Contributors
* All rights reserved.
*
* This code is licensed under the MIT license.
* Use it however you wish.
-->
<!DOCTYPE html>
<html>
<head>
@AugustoCalaca
AugustoCalaca / lodashGetToOptionalChaining.js
Created March 16, 2022 00:35
codemod to convert lodash get to use optional chaining
const lodashGetToOptionalChaining = (file, api) => {
const codeShift = api.jscodeshift;
const root = codeShift(file.source);
const importDeclaration = root.find(codeShift.ImportDeclaration, {
source: {
type: 'Literal',
value: 'lodash/get',
},