Error launching source instance: InvalidParameterValue

Hello gurus,

need help here!

getting this error while all .tf files pass validation and fmt!
│ Error: Error launching source instance: InvalidParameterValue: Value (demo-avi-controller) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name
│ status code: 400, request id: 7ee1cc0d-1b64-4427-83f1-de0ee5c3cd22

│ with aws_instance.avi-controller[0],
│ on avicontroller.tf line 15, in resource “aws_instance” “avi-controller”:
│ 15: resource “aws_instance” “avi-controller”

Hi, as there error states you have to check the IAM instance profile passed to the resource.