deployed docker app on AWS isn’t reachable

I’m following test-driven Flask course made by Michael Herman.
I’m stuck at the stage where I deployed the containerized Flask app on
AWS. Everything seems to be configured correctly but when I try
to connect to the cluster using public_ip:5001/users I get “Unable to connect” screen.
inbound port set outbound port set ip address error screen
security group is selected correctly

Source: StackOverflow