Testing IAM Role Permissions: Creating a bucket at the end could be a way to test the permissions granted to the IAM role. You might show how, after creating the role and attaching policies, you can use the role to perform actions like creating a bucket. This reinforces the concept of least privilege and demonstrates how IAM roles allow users or applications to perform only the actions they're authorized to do.
Just curios why bucket was created at the end of video. Was there any relevance with service account?
Testing IAM Role Permissions: Creating a bucket at the end could be a way to test the permissions granted to the IAM role. You might show how, after creating the role and attaching policies, you can use the role to perform actions like creating a bucket. This reinforces the concept of least privilege and demonstrates how IAM roles allow users or applications to perform only the actions they're authorized to do.