Get AWS DMS replication progress and send it to slack running on Lambda.
- Clone
- Build
- Upload
GOOS=linux GOARCH=amd64 go build -a -tags netgo -installsuffix netgo --ldflags '-extldflags "-static"' -o main && zip main.zip ./main && mv -f main.zip ~/Desktop/ && rm -rf main
handler is main
and you have to set these environment variables.
SLACK_INCOMING_URL
SLACK_CHANNEL
REGION
and need creating policy of dms.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "dms:*",
"Resource": "*"
}
]
}