Attach extra data to SNS notifications generated by codebuild

0

Hello,

I have a codebuild project that produces artifacts uploaded to s3.

I am trying to push one of these artifacts which has the JSON format to a elasticache cluster. I'm exploring the option to use codebuild notifications provided by SNS to trigger a lambda which will run the code to push the data to memcached.

I am not able to find a way to customize the codebuild notification pushed to SNS to include some of the data produced by my build. Is this possible at all? Is it possible to provide extra JSON blob or raw strings to be added to the SNS notification data generated by codebuild?

Alternatively, is there a better approach I should be exploring instead?

Thanks for any help or recommendation!

Edited by: RomainG on Jul 27, 2020 5:48 PM

RomainG
posta 4 anni fa286 visualizzazioni
1 Risposta
0

If anybody comes around this with a similar idea, it doesn't seem to be a good approach.

I went ahead with an alternative approach which involves triggering a lambda from the upload of my artifacts into s3, bypassing SNS entirely.

RomainG
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande