Receive alerts to chat clients from state changes in EMR.
-
Create and upload config to AWS S3
-
Config AWS Lambda
- Assemble and upload uber jar:
sbt assembly
- Set environment variable
S3_CONFIG_PATH
to point to S3 config; example,s3://bucket/prefix/emr-alert.conf
- Add handler
com.wen.emr.Alert::handler
- Attach
AmazonS3ReadOnlyAccess
policy to Lambda role
- Assemble and upload uber jar:
-
Config AWS CloudWatch rule
- Select Event Source as
Event Pattern
- Select Target as
Lambda Function
- Select Event Source as
spark.roomId=<room id>
spark.token=<api token>
spark.cluster.name.regex=<regex to match cluster name>
spark.cluster.status="WAITING,STARTING..."
spark.cluster.step.status="FAILED,CANCELLED..."
- Cisco Spark