The original version of this lab opened SSH (port 22) to your IP address. Because you will connect with Session Manager, the instance does not need any inbound port.
SID-instance-sg.
Session Manager uses an outbound connection from the SSM Agent to the Systems Manager service, so you can close every inbound port and still get a shell on the instance.