- Run
yarn - Edit
./config.yamlas needed - Edit
./serverless.ymlas needed - Run
make build - Run
make deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| key="ServiceEndpointWebsocket" | |
| stack_name="sh-ws-demo-backend-dev" | |
| aws cloudformation describe-stacks --stack-name "${stack_name}" \ | |
| --query "Stacks[0].Outputs[?OutputKey=='${key}'].OutputValue" \ | |
| --output text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| trap "exit" INT TERM ERR | |
| trap "kill 0" EXIT | |
| aws logs describe-log-groups \ | |
| --log-group-name-prefix "/aws/lambda/sh-ws-demo-backend" \ | |
| --query 'logGroups[].logGroupName' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generic Issue | |
| description: Organized way of making actionable tasks for PMs, data scientists, leads, etc. | |
| title: "[Generic]: " | |
| labels: | |
| body: | |
| - type: checkboxes | |
| id: Terms | |
| attributes: | |
| label: Guidelines | |
| description: By submitting this issue, you agree to follow our [Contributing Guidelines](https://www.contributor-covenant.org/version/2/1/code_of_conduct/). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "aws_iam_openid_connect_provider" "github_actions" { | |
| client_id_list = ["sts.amazonaws.com"] | |
| thumbprint_list = ["6938fd4d98bab03faadb97b34396831e3780aea1"] | |
| url = "https://token.actions.githubusercontent.com" | |
| } | |
| data "aws_iam_policy_document" "github_actions_assume_role_policy" { | |
| statement { | |
| actions = ["sts:AssumeRole"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "aws" { | |
| region = "us-east-2" | |
| default_tags { | |
| tags = { | |
| tag1 = "value1" | |
| tag2 = "value2" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """List git modified files for use in something like vim.""" | |
| import subprocess | |
| def main(): | |
| """Run main function.""" | |
| edit_keys = { | |
| "A", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """bulk object modify and move.""" | |
| import concurrent.futures as cf | |
| import json | |
| import boto3 | |
| from mypy_boto3_s3.service_resource import Bucket, ObjectSummary | |
| BUCKET_NAME = "some-bucket" |
- Download the zip ^ in this gist and unzip into a project directory.
- On your home internet gateway, port forward
443to your internal ip port2222
- Local
- Edit variables in docker-compose.yaml
- run
docker-compose up
- Remote