Error - The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist

I am trying to create a ElasticBeanstalk environment and I have added the these permissions to my I AM role: AWSElasticBeanstalkCustomPlatformforEC2Role

2023-05-16 08:33:54    ERROR   Failed to launch environment."```
Can someone help me understand if I am missing something?

Check your network (Subnets)

Did you get it fixed yet?

No still getting the same error

Elastic bean stalk can launch many pieces that each require different permissions…

What does the stack look like that you’re trying to launch?