The original lab created an IAM user and stored its access keys on the instance. Long-term access keys are a common source of leaks, so this version uses an IAM role attached to the instance instead. The AWS CLI on the instance automatically receives temporary credentials from the instance profile.
FCJ-S3Security-EC2-Role.s3:* only on the lab bucket and its objects.
The role only has permissions on the lab bucket. Every Deny you add with a bucket policy in the next sections overrides this Allow, which is exactly what you will test.