useafterfree / example-aws-sns

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 73.6%Language:HCL 23.2%Language:Dockerfile 3.2%