aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

Allow use of SNS topics for AWS Amplify Build Notifications #365

Open jeffscottlevine opened 4 years ago

jeffscottlevine commented 4 years ago

Is your feature request related to a problem? Please describe. The AWS Amplify console allows the submission of e-mail addresses to receive build notifications. After an address is entered, an SNS topic is created and the e-mail address is subscribed to it. It is not possible to specify an existing SNS topic.

Describe the solution you'd like I would like to see the Amplify console allow the use of existing SNS topics for build notifications.

Additional context None.

mtheoryx commented 3 years ago

Or alternatively (if it helps speed up development)...

If it were possible to list or export the ARN for whatever topic is already being created "behind the scenes", it could allow other non-amplify integrations by subscribing to that topic.

Given:

Would be great if Amplify could:

To then allow me to create new integrations such as:

If the above narrows down the scope of the request, hopefully, I would love to hear other input on how this might be valuable.

diogokawamoto commented 11 months ago

Inspecting which resources are created when I setup the email notification, I found the following event pattern for EventBridge.

I think it is possible to set a SNS topic as target for this event.

{
  "detail": {
    "appId": ["<amplify-app-id>"],
    "branchName": ["main"],
    "jobStatus": ["SUCCEED", "FAILED", "STARTED"]
  },
  "detail-type": ["Amplify Deployment Status Change"],
  "source": ["aws.amplify"]
}
taraspos commented 1 month ago

More extensive answer about how to use AWS Amplify + SNS + AWS Chatbot can be found here: