EC2 Instance Connect
EC2 Instance Connect enables a browser-based SSH session. A temporary SSH key will be uploaded so there is no need to manage any SSH keys. Port 22 needs to be open in the security group.

Roles
Creds can be configured in an EC2 instance, but it is better to attach an IAM role.