Giter Club home page Giter Club logo

Comments (2)

santeeps avatar santeeps commented on July 30, 2024

Above error disappeared when i changed the ENDPOINTARRAY to below format.
"arn:aws:sns:XXXXX:AWS-Notifications"

So now i can see the event id error. Is this OK? is this becz no events in SHD?

{
"errorMessage": "ERROR: Invalid input, Event ARN Invalid!",
"errorType": "Exception",
"stackTrace": [
" File "/var/task/index.py", line 153, in lambda_handler\n raise Exception(eMessage)\n"
]
}

from aws-health-tools.

gdougaws avatar gdougaws commented on July 30, 2024

The Health-Event-Chat-Post Lambda function that is part of the SHD-Notifier expects a Health ARN corresponding to a Service Health Dashboard item to be included in the event when it is invoked. If you are wanting to test the Health-Event-Chat-Post Lambda function, you would need to construct the test event to include a eventArn item in the json document being passed to the function. Below is an example that can be used, which uses the most recent Service Health Dashboard item (a post for Internet Connectivity Issues in the AP-SOUTH-1 Region on December 24):

{
  "eventArn": "arn:aws:health:ap-south-1::event/INTERNETCONNECTIVITY/AWS_INTERNETCONNECTIVITY_OPERATIONAL_ISSUE/AWS_INTERNETCONNECTIVITY_OPERATIONAL_ISSUE_RIPRW_1640371277"
}

You may also need to adjust the EndpointArray parameter on the stack from "arn:aws:sns:XXXXX:AWS-Notifications" to ["arn:aws:sns:XXXXX:AWS-Notifications"] as the configuration should be a array even if it is a single element (as per the README.md).

from aws-health-tools.

Related Issues (20)

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.