How can I receive Amazon SNS notifications when my AWS Glue job changes states?
"I want to get a notification when an AWS Glue extract, transform, and load (ETL) job succeeds, fails, times out, or stops."
"I want to get a notification when an AWS Glue extract, transform, and load (ETL) job succeeds, fails, times out, or stops.Short descriptionCreate and subscribe to an Amazon Simple Notification Service (Amazon SNS) topic. Then, create an Amazon EventBridge event rule for each state change that you want to monitor.Note: For this issue, it's a best practice to use Amazon EventBridge instead of Amazon CloudWatch.ResolutionCreate and subscribe to an Amazon SNS topic1.    Open the Amazon SNS console.2.    Select Topics, and then select Create topic.3.    Enter a Topic name. The Display name field is optional.4.    Select Create topic.5.    Select Subscriptions from the navigation pane. Then, choose Create subscription.6.    Under Details, complete the following fields:        For Topic ARN, choose the ARN of the topic that you created.        For Protocol, choose Email.        For Endpoint, enter the email address that you want the notifications to be sent to.7.    Select Create subscription.8.    Check your email account, and wait to receive a subscription confirmation email message. When you receive it, select the Confirm subscription link.Create an EventBridge event rule1.    Open the EventBridge console.2.    In the navigation pane, select Rules, and then select Create rule.3.    Enter a name for your rule. Leave the other fields as their default selections, and then select Next.4.    Scroll down to the Creation method section, and choose Custom pattern (JSON editor).5.    In the Event pattern box, enter code similar to the following. Replace job_name with the name of your AWS Glue ETL job. For state, enter the state changed that you want to be notified about (SUCCEEDED, FAILED, TIMEOUT, or STOPPED). Create separate event rules for each state change that you want to monitor:{  "detail-type": "Glue Job State Change",  "source": "aws.glue",  "detail": {    "jobName": "MyJob",    "state": "SUCCEEDED"  }}6.    Select Next. This brings you to the Select target(s) page.7.    For Target types, choose AWS service. Then, choose SNS topic from the dropdown list.8.    In the Topic dropdown list, choose the name of the SNS topic that you created earlier.9.    Select Next. This brings you to the Configure tags - optional page. Select Next, and then select Create rule.To test the event rule and SNS topic, run an AWS Glue job. Verify that you receive an email notification when the job changes to the state that you specified in the event rule.Related informationHow can I use an AWS Lambda function to receive SNS alerts when an AWS Glue job fails a retry?How can I automatically start an AWS Glue job when a crawler run completes?Automating AWS Glue with CloudWatch EventsAWS Glue EventsFollow"