Error
AccessDenied: User: arn:aws:iam::058264141167:user/kk_labs_user_886392 is not authorized to perform: elasticloadbalancing:CreateLoadBalancer on resource: arn:aws:elasticloadbalancing:us-east-1:058264141167:loadbalancer/net/demo-nlb-test/* because no identity-based policy allows the elasticloadbalancing:CreateLoadBalancer action
@shudhanshubhagat
Hi, this AccessDenied error occurs because the AWS Playground policy does not allow creating a Network Load Balancer (NLB). Please use an Application Load Balancer (ALB) instead.
Also, please avoid creating multiple posts for the same question. New posts may not appear immediately because they need to be reviewed and approved by an admin. After submitting a post, please wait for the moderation process rather than posting it again.
If a specific KodeKloud course or lab explicitly requires an NLB, please share the course/lab URL and the exact task or question number so we can check whether the lab requirements conflict with the playground restrictions.