Day 37: Issue with Managing EC2 Access with S3 Role-based Permissions

rob_kodekloud
Sat, 18 Apr 2026 02:16:45 +0000

Raymond’s doing something a bit different than what you’re doing – he’s setting up a security group to allow ssh from arbitrary addresses, which works. You’re using “EC2 Instance Connect” – which should work for the existing instance, since I tried using that and it worked. You need to use the “Connect using public IP address” setting, which is the default for that connect type. If you changed any of the settings for the existing EC2 instance, that might explain the problem.