2021-02-22
cloud-formation-interface

Read More

2021-02-18
AWS-Well-Architected

Read More

2021-02-01
aws-cloud-formation

Read More

2021-01-14
aws-api-gateway-401

最近遇到一個 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

Read More

2021-01-06
aws-smtp-server

在測試 splunk 時,要用 email alert 時,需要先設定 smtp server
因為現在公司的 smtp server 現在滿多的,也不容易找到外部的 smtp server 可以用,就用 aws smtp service 囉

簡單的流程 log

  • 申請 smtp credentials,有分 region
  • 要用來發現的 email (mail from),需要先經過驗證

Reference

Read More

2020-11-04
aws_sns_encryption

最近在 serverless 上,加上 cloud conformity的檢查,檢查後會出現 Rule ID: SNS-006 SNS Topic Encrypted 的 High level,就找了一下解法如下

可以執行的範例 serverless conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
provider:
...

custom:
...
alerts:
topics:
ok:
topic: sns-alerts-ok

alarm:
topic: sns-alerts-alarm

...

functions:
...

resources:
- Resources:
AwsAlertsOk: # Append the following properties to the resource created by the plugin serverless-plugin-aws-alerts
Properties:
KmsMasterKeyId: enter-your-cmk-id-here

AwsAlertsAlarm: # Append the following properties to the resource created by the plugin serverless-plugin-aws-alerts
Properties:
KmsMasterKeyId: enter-your-cmk-id-here

Reference

Read More

2020-07-31
aws-dynamodb-use

列一下 python boto3 使用 dynamodb 的sample

Reference

Read More

2020-07-29
use-vpc-flow-log

最近開始打 E2E 後,有遇到幾次在 VPC 中,出現 lambda 連不到 RDS 的情形,所以就開 VPC flow log 來看看
VPC flow log, 可以設定到 CloudWatch & S3 中,考慮到 cloudwatch 太貴,想說就用 S3 來試試看

設定的動作

advance reference

Read More

2020-06-22
Serverless Data Engineering

Read More

2020-06-22
aws_s3_signed_url

列一下用 S3 signed URL 相關的事項

Reference

Read More