I have this snippet:
provider "aws" { region = "eu-west-1" assume_role { role_arn = "arn:aws:iam::123456789011:role/MyRo