IAM (Identity and Access Management) roles in AWS Elastic Transcoder provide the necessary permissions for Elastic Transcoder to access S3 buckets and other AWS resources. When creating a pipeline, you must specify an IAM role that grants Elastic Transcoder permission to read from the input bucket, write to the output bucket, and perform other necessary operations.