Following the setup instructions for AWS and using the suggesting AMI for my region, I’ve successfully got an EC2 instance running that I can log in to and configure via web browser but I can’t get EC2 Instance Connect to work.
I’m creating the instance using CDK, and have this user data script:
sudo yum install ec2-instance-connect
According to the AWS docs, that should be all that’s needed but I still can’t connect. I haven’t configured the instance with a public key-pair, but have confirmed on an AWS Ubuntu image that this isn’t required.
Thanks @jesse, it’s definitely open on port 22, that’s where the Permission denied (publickey) response comes from.
Looked at the system log and found an error like yum command not found, not that familiar with linux package management but guessing it’s just different on Ubuntu. Now trying to follow this guide using apt-get but no luck yet.