2021/8/25 SPACEMARKET x Lancers Engineer Meetup
23
sendgrid-maildev コンテナの適用(AWS Fargateの例)
ALB
Fargate
sendgrid-maildev
Container
curl --request POST ¥
--url http://sendgrid.example.com/v3/mail/send ¥
--header 'Authorization: Bearer SG.xxxxx' ¥
--header 'Content-Type: application/json' ¥
--data '{"personalizations": [{
"to": [{"email": "
[email protected]"}]}],
"from": {"email": "
[email protected]"},
"subject": "Test Subject",
"content": [{"type": "text/plain", "value": "Test Content"}]
}'
SendGrid API ( /v3/mail/send ) MailDev ( / )
App
Port:3030
Health Check : / 404
Port:1080
Health Check : / 200
SENDGRID_DEV_API_KEY:
SG.xxxx
User
Target
Group
Path: /v3/mail/send Path: /*