Yet another bootstrap theme.

2022-09-13
eks-step-function

最近使用 EKS 來跑 micro services,還滿有趣的
找時間試試,用 step function 來 trigger EKS job

Reference

Read More

2022-09-05
aws-devops

有空來研究一下在 AWS 上,如何進行 DevOps

Reference

Read More

2022-08-30
serverless-lambda-performance

Read More

2022-08-23
pytest-skip-test-case

在使用 pytest 時,有些 test-case 是在 開發 階段才需要跑。上到 daily job 時,可以跳過這些 test-case
找了一下 pytest 的作法,可以用 mark 的方式達成

Reference

Read More

2022-08-18
lambda-custom-authorizer

近期在修改 api-gateway 中 custom authorizer 回傳的錯誤訊息。
原本是希望可以回傳 http status code 400 的錯誤,試了一段時間後。因為是以 custom authorizer 的方式實作,在 auth 中,僅能回傳 401 & 403 的錯誤

Reference

Read More

2022-08-17
api-gateway-response

Read More

2022-08-17
datagrip-ssh-tunnel

在使用 AWS RDS 的過程中,大多會將 RDS 建立於 private subnet 中。local 電腦要連時,則會透過 bastion server 連。
當使用 DataGrip 這類 IDE 時,則需要在 IDE 中,設定連到 private subnet 的方式

Step

  • 建立 DataSource
  • 因為要透過 bastion server,因而要設定 ssh tunnel。可以讀 ~/.ssh/config 設定,還滿方便的
  • 接著要記得將 Drive 切換成 Amazon Aurora MySQL 才可以正常連線 ** 這部我卡了很久,才試出來
  • 連 MySQL 的部分,要用 private ip,自行先用 nslookup 查過

Reference

Read More

2022-08-17
rds-ssh-tunnel

ssh tunnel 設定的參考

  • ssh -i <identity_file> -f -l <bastion-host-username> -L <local-port-you-connect-to>:<rds-endpoint>:<rds:listening-port> <bastion-host-public-ip> -v
  • Example Command
    • ssh -i "private_key.pem" -f -l ec2-user -L 5432:172.31.39.62:5432 3.133.141.189 -v

Reference

Read More

2022-08-16
jetbrains-aws-toolkit

最近在玩 JetBrains IDE 時,才看到有這 AWS Toolkit for JetBrains 資料,可以來嘗試看看

Reference

Read More

2022-08-12
go-aws-sdk-v2

使用 go 來呼叫 aws resource,當然需要透過 sdk,目前使用的是 AWS SDK for Go V2

Reference

Read More