The shop's server needs to read the menu from S3. It could use a user's access keys, but keys copied onto a server can be stolen, and they never expire.
A role is the better way: an identity with policies, like a user, but nobody signs in as it. A server or a service wears it, and AWS hands the server short-lived credentials that change on their own. Nothing to steal from the disk.
An instance profile is the holder that puts a role on an instance. A role made for EC2 usually has one of the same name.
aws ec2 associate-iam-instance-profile
Gives a running instance its role, through the instance profile.
A role with the AWS managed policy AmazonSSMManagedInstanceCore also lets you open a shell on the server with Session Manager: no SSH keys and no open port. The lab shows how.