I can’t create an EKS cluster from AWS blueprint. I want to practice Karpenter deployment and cluster auto-scaling
I have created playground-aws using Kodecloud site, but I get errors when I run terraform plan
╷
│ Error: getting ECR Public authorization token: operation error ECR PUBLIC: GetAuthorizationToken, https response error StatusCode: 400, RequestID: cddb9115-c2d1-4690-8cce-c1941d739d2a, api error AccessDeniedException: User: arn:aws:iam::xxx:user/kk_labs_user_449884 is not authorized to perform: sts:GetServiceBearerToken on resource: * because no identity-based policy allows the sts:GetServiceBearerToken action
│
│ with data.aws_ecrpublic_authorization_token.token,
│ on main.tf line 37, in data “aws_ecrpublic_authorization_token” “token”:
│ 37: data “aws_ecrpublic_authorization_token” “token” {
│
The playground accounts are very limited in terms of what you are allowed to do.
The only way to create an EKS cluster is by following this guide, however you’re still not going to be able to run Karpenter on it because the ability to add EKS add-ons as happens here is not enabled in playgrounds.
The playgrounds are limited for reasons due to cost (pro membership prices would be increased for all if certain other features are enabled) and security (to prevent abuse of the playground accounts).
It is free to create your own AWS account where you can do what you want. You are only charged for what you use over the monthly free tier limits, so if you did do that, you would absolutely have to remember to delete everything you create after you finish playing with it.
The idea of playgrounds is that you don’t have to remember to clean up after yourself.