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

Add support for ignoring S3 test notifications #11

Open
leeren opened this issue Aug 17, 2017 · 3 comments
Open

Add support for ignoring S3 test notifications #11

leeren opened this issue Aug 17, 2017 · 3 comments

Comments

@leeren
Copy link
Contributor

leeren commented Aug 17, 2017

When configuring new s3 notifications ensure that the initial test notification is ignored.

Below is an example of a test notification body:

{"Service":"Amazon S3","Event":"s3:TestEvent","Time":"2017-08-17T22:38:37.209Z","Bucket":"amira-osxcollector-output-leeren","RequestId":"...","HostId":"..."}
@janetr1023
Copy link

Is anyone looking at this, or is there a clean workaround you can suggest to me?

@jjsendor
Copy link
Contributor

Hi @janetr1023!

You could simply run AMIRA once in a "manual" mode, i.e. just execute the command with the proper configuration that already contains newly created S3 bucket and SQS queue. After this initial run presumably fails, because the test notification cannot be parsed, all subsequent runs should work alright.

Alternatively you could purge the SQS queue so that the test message is removed before running AMIRA.

@janetr1023
Copy link

Great, thank you!

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

No branches or pull requests

3 participants