Git Product home page Git Product logo

pushover-notification's People

Contributors

dependabot[bot] avatar gebn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ocelotsloth

pushover-notification's Issues

Prod alias may point to $LATEST

Due to this questionable behaviour, a new version will only be published if the function is updated. It's therefore possible for a non-tagged push to master after a release to break prod.

Handle textual messages

If we receive a event where the Message fails to parse as JSON, set it as the message body, with the title set to the Subject. You can also configure the notification time to Timestamp.

This would allow you to handle budget notifications without writing another Lambda function to convert from one JSON format to another:

{
    'Records': [
        {
            'EventSource': 'aws:sns',
            'EventVersion': '1.0',
            'EventSubscriptionArn': 'arn:aws:sns:us-east-1:158438328645:PushNotification:ef4796b2-a0d6-4d3b-b9ff-9866ffe34763',
            'Sns': {
                'Type': 'Notification',
                'MessageId': '4c99e09d-0bdc-52d1-a395-...',
                'TopicArn': 'arn:aws:sns:us-east-1:...:PushNotification',
                'Subject': 'Budget Notification: Monthly AWS Budget is in Alarm State',
                'Message': 'AWS Budget Notification\n\nDear AWS Customer,\n\n...',
                'Timestamp': '2017-09-01T02:10:35.610Z'
            }
        }
    ]
}

Multi-region deployment to AWS

Regions are meant to be self-contained - there shouldn't be inter-region communication except for replication/backup. Therefore deployment to a list of regions needs to be supported, with the ability to keep the latest version in sync. It should be no harder than deploying to a single region.

Set up a DLQ

Have it email if sending fails. DLQs for all other functions should be consumed by this function so alerts go via Pushover.

Improve error handling

Exiting with the number of failed messages is inadequate - Lambda will believe the function succeeded, and they will not be retried.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.