Skip to content

Instantly share code, notes, and snippets.

View momota10's full-sized avatar
🎯
Focusing

Momota Sasaki momota10

🎯
Focusing
View GitHub Profile
@momota10
momota10 / requirements.txt
Created October 13, 2021 04:39
pip freeze で出てきたものをぺたり
absl-py==0.11.0
alembic==1.4.2
ansiwrap==0.8.4
apache-airflow==2.0.1
apache-airflow-providers-ftp==1.0.1
apache-airflow-providers-http==1.1.1
apache-airflow-providers-imap==1.0.1
apache-airflow-providers-sqlite==1.0.2
apispec==3.3.2
appdirs==1.4.4
@momota10
momota10 / sns_lambda_slack.py
Last active November 22, 2021 09:55
Amazon SNSのサブスクリプション先としてlambdaを指定、その後lambdaにてslack通知を行う
import json
from pytz import timezone
from dateutil import parser
import urllib.request
print('Loading function')
def lambda_handler(event, context):
@momota10
momota10 / cloudwatch_err_slack.py
Created November 18, 2021 11:09
cloudwatchのサブスクリプションにlambdaを登録してエラーをslackに通知するスクリプト
import os
import gzip
import json
import base64
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
SLACK_CHANNEL = os.environ['SLACK_CHANNEL']
SLACK_WEBHOOK = os.environ['SLACK_WEBHOOK']
@momota10
momota10 / gke-sandbox-values.yaml
Last active May 28, 2022 02:02
Airflow2.1.2をhelmにてGKEにデプロイするためのvaluesの定義。templateは https://github.com/airflow-helm/charts/blob/airflow-8.5.2/charts/airflow/values.yaml
########################################
## CONFIG | Airflow Configs
########################################
airflow:
## if we use legacy 1.10 airflow commands
##
legacyCommands: false
## configs for the airflow container image
##
@momota10
momota10 / gke-autopilot-values.yaml
Last active May 28, 2022 02:21
Airflow2.1.2をhelmにてGKE(Autopilot)にデプロイするためのvaluesの定義。templateは https://github.com/airflow-helm/charts/blob/airflow-8.5.2/charts/airflow/values.yaml
########################################
## CONFIG | Airflow Configs
########################################
airflow:
## if we use legacy 1.10 airflow commands
##
legacyCommands: false
## configs for the airflow container image
##