Default login (ec2-user / instance-id) fails in newly installed AWS EC2 instance

I've launched a new AWS EC2 instance (m5.large) based on Matillion's latest AMI (Matillion v1.56.9, AMI "ami-08a4d1adedc6799d7"). The instance is coming up fine and I can reach Matillion's login page at https://[internal IP], but I cannot login with the default credentials which are supposed to be "ec2-user" and the instance id ("i-xxxxxx"), see https://documentation.matillion.com/v156/docs/2957722.

 

THe error message is "Invalid username or password".

 

The EC2 instance has no public IP, that's why I use a private IP.

I can also ssh into the instance.

 

I haven't touched the installation, but login fails. How can I debug this?

From https://stackoverflow.com/questions/69923916/matillion-cannot-login-with-default-ec2-user I learned that this was about IMDSv1 being disabled on our EC2 instance. Matillion apparently requires IMDSv1 to fetch the instance id. Starting another EC2 instance with IMDSv1 being enabled, everything works fine...