Problem: AWS::CodeStarNotifications::NotificationRule fails to create during deployment
When deploying a solution that uses the AWS::CodeStarNotifications::NotificationRule resource, the resource creation may fail with the error "Invalid request provided: AWS::CodeStarNotifications::NotificationRule". The AWS::CodeStarNotifications::NotificationRule resource is attempting to create a notification rule, but the necessary service role has not been fully created yet. This is due to a timing issue, where the resource is trying to create the rule before the service role is ready.
Resolution
If you encounter this issue, you can try manually retrying the failed resource creation. After approximately 15 minutes, the service role should be fully created, and the AWS::CodeStarNotifications::NotificationRule resource should be able to create the notification rule successfully.