Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AWS Health Event Bridge Rule #633

Merged
merged 2 commits into from
Apr 28, 2022
Merged

Fix AWS Health Event Bridge Rule #633

merged 2 commits into from
Apr 28, 2022

Conversation

LikithaVemulapalli
Copy link
Contributor

Issue #, if available: #550

Description of changes:

  • Modified the Event Bridge Rule for "MyK8sScheduledChangeRule" in README document to consider the detail-type for the AWS Health Events.

  • Modified the conditions in "scheduled-change-event" file for checking service and event type category for AWS Health Events. Instead of returning an error, now it returns a warning message and deletes the messages that are not handled by NTH.

  • For testing the changes, followed the below steps:
    - Ran the e2e tests to check whether the modified changes are affecting any other functionalities.
    - Tried to send an AWS health event from different service other than EC2 from SQS service.
    - Verified if the sent message has been deleted and a warning message is returned.
    - Tried to send an AWS Health Event with EC2 service and verified if the output for that Event is as expected.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@LikithaVemulapalli LikithaVemulapalli requested a review from a team as a code owner April 26, 2022 17:08
Copy link
Contributor

@AustinSiu AustinSiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! Just a few comments.

@AustinSiu
Copy link
Contributor

/lgtm 👍

@vincentgna
Copy link

vincentgna commented Nov 30, 2022

this PR missed also updating the cfn sample:

  • Modified the Event Bridge Rule for "MyK8sScheduledChangeRule" in README document to consider the detail-type for the AWS Health Events.

--event-pattern "{\"source\": [\"aws.health\"],\"detail-type\": [\"AWS Health Event\"],\"detail\": {\"service\": [\"EC2\"],\"eventTypeCategory\": [\"scheduledChange\"]}}"

vs

EventPattern:
source:
- aws.health
detail-type:
- AWS Health Event
Targets:
- Id: 1
Arn: !GetAtt Queue.Arn

@LikithaVemulapalli
Copy link
Contributor Author

Thank you @vincentgna for noticing it, will update cfn sample as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants