AWS PassRole not working in Playground

I am trying to create a CodeDeploy deployment group, but I am encountering an error related to iam:PassRole, which prevents me from creating any deployments.

I checked the AWS services page on KodeKloud, and it indicates that CodeDeploy deployments are allowed. However, iam:PassRole is required for the following actions:

  • Launching EC2 instances with an IAM role
  • Creating a CodeBuild project
  • Deploying via Elastic Beanstalk
  • Running ECS tasks
  • Using CodePipeline / CodeDeploy

Because of this permission issue, I am currently unable to use these services.

We have a way for this to work in the playground. You can create roles with the following names:

  • lambda_execution_role
  • CodeDeployRole
  • EC2InstanceRole
  • CodePipelineServiceRole
  • eksClusterRole
  • eksWorkerNodeRole

These are placeholders; you only get the access the main playground user has, but any of these roles can be created. As long as you use one of these names, it should work.