Send Amplify previews build notifications to a discord channel.
Inspired by https://dev.to/aws-builders/enable-slack-notifications-for-aws-amplify-deployments-5a0l
You should probably read the article above and follow it. I added a few enhancments on the code - get more details on the PR and related JIRA ticket.
const https = require('https')
// Update this to be sent as Authorization header for bitbucket