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 does not provide scheduled maintenance notifications for EC2 instances. Additionally, AWS Config is more suited for configuration monitoring rather than event-driven notifications. This solution does not meet the requirement for timely EC2 maintenance notifications.
Amazon EventBridge can effectively monitor AWS Health events, including EC2 maintenance notifications. By targeting an SNS topic, the setup allows for easy subscriptions, enabling both the Slack channel and shared inbox to receive notifications. This option directly addresses the requirement for including instance Name and Owner tags as part of the notification process.
While a Lambda function can send notifications, monitoring EC2 health events through CloudWatch metrics is not suitable for detecting AWS maintenance notifications. CloudWatch metrics do not provide direct alerts for scheduled maintenance events, making this solution inadequate.
AWS CloudTrail is used for logging API calls and does not directly integrate with AWS Support for sending maintenance notifications. The CloudTrail lookup event approach is not designed for this purpose, and SNS would not receive the relevant EC2 maintenance events effectively, rendering this solution insufficient for the requirement.