Which solution will meet these requirements?
Integrate AWS Trusted Advisor with AWS Config. Configure a custom AWS Config rule to invoke an AWS Lambda function to publish notifications to an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe a Slack channel endpoint and the shared inbox to the topic.
Use Amazon EventBridge to monitor for AWS Health events. Configure the maintenance events to target an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe an AWS Lambda function to the SNS topic to send notifications to the Slack channel and the shared inbox.
Create an AWS Lambda function that sends EC2 maintenance notifications to the Slack channel and the shared inbox. Monitor EC2 health events by using Amazon CloudWatch metrics. Configure a CloudWatch alarm that invokes the Lambda function when a maintenance notification is received.
Configure AWS Support integration with AWS CloudTrail. Create a CloudTrail lookup event to invoke an AWS Lambda function to pass EC2 maintenance notifications to Amazon Simple Notification Service (Amazon SNS). Configure Amazon SNS to target the Slack channel and the shared inbox.
Explanations:
AWS Trusted Advisor and AWS Config are not designed to handle EC2 maintenance notifications. Trusted Advisor provides best practices recommendations, and AWS Config monitors resource configuration changes, but neither integrates with AWS Health events.
Amazon EventBridge can monitor AWS Health events, including EC2 maintenance notifications. Configuring it to target an SNS topic and using an AWS Lambda function to send notifications to Slack and the shared inbox satisfies the requirement.
CloudWatch metrics do not capture AWS Health events, such as EC2 maintenance notifications. Therefore, this approach cannot directly capture and respond to these notifications.
AWS Support integration with CloudTrail does not provide EC2 maintenance notifications. CloudTrail logs AWS API calls but doesn’t capture AWS Health events, which are necessary for EC2 maintenance notifications.