/example-aws-sns

An example GitHub Action using AWS Simple Notification Service (SNS)

Primary LanguageJavaScriptCreative Commons Zero v1.0 UniversalCC0-1.0

AWS SNS Example

A working example of an AWS SNS-powered Action, that delivers an email message to all subscribers of an SNS topic, summarizing a push event.

Usage

  1. Provide required secrets
  2. Subscribe an email address to the SNS topic

Provide required secrets

  • AWS_ACCESS_KEY_IDRequired The AWS access key part of your credentials (more info)
  • AWS_SECRET_ACCESS_KEYRequired The AWS secret access key part of your credentials (more info)

Subscribe an email address to the SNS topic

To subscribe an email to the SNS topic:

aws sns subscribe --topic-arn $TOPIC_ARN --protocol email --notification-endpoint $YOUR_EMAIL_ADDRESS

This could also be configured as part of the included main.workflow.

License

This repository is licensed under CC0-1.0, which waives all copyright restrictions.