Yet another bootstrap theme.

2021-12-09
python-oop

Read More

2021-12-09
python-factory-pattern

在針對不同的 telemetry-type 實作不同的 de-normalize & to_parquet 時,覺得這滿適合用 Factory Pattern 的,就花些時間來試試看囉
這樣做,覺得滿好的

Reference

同場加映

Read More

2021-12-09
aws-s3-parquet

Read More

2021-12-08
python-log-function

在 debug python 的時候,總想知道有沒有 call 到某個 function,目前是有用 decorator 來用
進階的方式為使用 dataclass,這還要找時間來試試囉

Reference

Read More

2021-12-08
python-dataclass

最近在使用 class & decorators 時,都有看到 dataclasses 的說明,就來用用看囉
滿有趣的

Reference

Read More

2021-12-07
aws-kms-terraform

記錄一下,目前使用 kms 的方式,主要是 ksm 要如何設定 policy 較為適合

Reference

Read More

2021-12-06
mac-font-word

Read More

2021-12-05
use-terraform-module

一開始是用 Docs overview | hashicorp/aws | Terraform Registry & aws-samples/aws-stepfunctions-ecs-fargate-process 範例來進行整合 step-function & ecs fargate 的流程

範例中,是直接用 aws resource & 自行定義 iam_role & policy 的方式,這方式可以清楚的了解 iam_role, policy 的運作,不過有點太苦囉
接著在 google 的過程中,有看到 Terraform AWS modules 的方式,在原來的基本上往上包了一層,提供更加方式使用 aws module 的方式
覺得滿好用的,接下來新增的部分,會先從 AWS module 來找找看,如何使用

Reference

Read More

2021-12-04
aws-ecs-python

Read More

2021-12-02
curl-post-file

用 curl 送檔案到 api 的方式

方式

  • 用 post request 的方式
    • curl -X PUT -d '{"id": 1}' https://reqbin.com/echo/post/json
  • 用 post file 的方式
    • curl -d @path/to/data.json https://reqbin.com/echo/post/json

Reference

Read More