This python service will listen all events that are happening in spinnaker and send logs to AWS CloudwatchLogs
- clone the repository
git clone git@github.com:foss-cafe/spinnaker-event-listener.git
cd spinnaker-event-listener- Build Docker image
docker build -t spinnaker-event-listener .- Update your IAM roles that are attached to EC2 nodes
Use example policy mentioned in
deploydir
kubeclt apply -f deploy/This service will be deployed in spinnaker namespace
docker run -d -p 5000:5000 -v $HOME/.aws:~/.aws spinnaker-event-listener
docker psOnce your service is deployed, update your hal configs(ECHO Service)
- If you are deploying spinnaker using halyard
Update your hal config
$HOME/.hal/default/profilesadd a new fileecho-local.yml
rest:
enabled: true
endpoints:
- wrap: true
flatten: false
url: http://spinnaker-event-lister.spinnaker:5000/api/events # Can work if this deployed via Kubernetes or update the Endpoint
eventName: spinnaker_eventsIf this step didn't work copy echo-local.yml to /opt/spinnaker/config/ and deploy spinnaker
hal deploy apply