aws
2021-02-22
2021-02-18
Read More
2021-02-01
Read More
2021-01-14
最近遇到一個 api-gateway 回 401 的情形,追查之後覺得有可能是 identity sources 傳空值造成的
- For request parameter-based authorizers, the error generally occurs when configured identity sources are missing, null, empty, or invalid.
Reference
2021-01-06
在測試 splunk 時,要用 email alert 時,需要先設定 smtp server
因為現在公司的 smtp server 現在滿多的,也不容易找到外部的 smtp server 可以用,就用 aws smtp service 囉
簡單的流程 log
- 申請 smtp credentials,有分 region
- 要用來發現的 email (mail from),需要先經過驗證
Reference
2020-11-04
最近在 serverless 上,加上 cloud conformity的檢查,檢查後會出現 Rule ID: SNS-006 SNS Topic Encrypted 的 High level,就找了一下解法如下
可以執行的範例 serverless conf
1 | provider: |
Reference
2020-07-31
2020-07-29
最近開始打 E2E 後,有遇到幾次在 VPC 中,出現 lambda 連不到 RDS 的情形,所以就開 VPC flow log 來看看
VPC flow log, 可以設定到 CloudWatch & S3 中,考慮到 cloudwatch 太貴,想說就用 S3 來試試看
設定的動作
- 開啟 VPC flow log, Publishing flow logs to Amazon S3
- 設定 Anthena 可以 query, 查詢 Amazon VPC 流程日誌
- 先建立好 table 後,還需要 alter table 將日期設定為 partition 後,才查得到資料