11# aws-backup-integration-slack-go
22
3- ** UNDER DEVELOPMENT**
4-
53AWS Lambda function that listens to ** AWS Backup** events via ** Amazon
64EventBridge** and publishes clean, threaded messages to Slack.
75
@@ -26,11 +24,11 @@ EventBridge** and publishes clean, threaded messages to Slack.
2624### Steps
2725
2826``` bash
29- git clone https://github.com/cruxstack/aws-backup-integration-slack.git
30- cd aws-backup-integration-slack
27+ git clone https://github.com/cruxstack/aws-backup-integration-slack-go .git
28+ cd aws-backup-integration-slack-go
3129
3230# build static Linux binary for lambda
33- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bootstrap
31+ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -C cmd/lambda -o ../../ bootstrap
3432
3533# package
3634zip deployment.zip bootstrap
@@ -56,11 +54,18 @@ zip deployment.zip bootstrap
5654 * Upload ` deployment.zip `
5755 * Set environment variables above
58563 . ** EventBridge rule**
59- ``` json
60- {
61- "source" : [" aws.backup" ],
62- "detail-type" : [" Backup Job State Change" ]
63- }
57+ ``` json
58+ {
59+ "source" : [" aws.backup" ],
60+ "detail-type" : [
61+ " Backup Job State Change" ,
62+ " Backup Plan State Change" ,
63+ " Backup Vault State Change" ,
64+ " Copy Job State Change" ,
65+ " Region Setting State Change" ,
66+ " Restore Job State Change"
67+ ]
68+ }
6469 ```
6570 Target: the Lambda function.
66714 . ** Slack App**
@@ -75,7 +80,7 @@ zip deployment.zip bootstrap
7580
7681``` bash
7782cp .env.example .env # edit the values
78- go run .
83+ go run -C cmd/sample .
7984```
8085
8186The sample runner replays ` fixtures/samples.json ` and posts to Slack exactly as
0 commit comments