Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eksctl without IAM:CreateRole permissions #5452

Closed
ecpullen opened this issue Jun 22, 2022 Discussed in #5423 · 4 comments
Closed

eksctl without IAM:CreateRole permissions #5452

ecpullen opened this issue Jun 22, 2022 Discussed in #5423 · 4 comments
Labels
kind/help Request for help stale

Comments

@ecpullen
Copy link

Discussed in #5423

Originally posted by ecpullen June 14, 2022
I am trying to setup eksctl for cluster creation using existing service roles and instance profiles.

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name:  eksctl-test
  region: us-west-2

iam:
  serviceRoleArn: arn:aws:iam::***************:role/*********************

Whenever I use eksctl create cluster it errors with.

AWS::IAM::Role/ServiceRole: CREATE_FAILED – "API: iam:CreateRole User: arn:aws:sts::*********:assumed-role/********** is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::*********:role/eksctl-<cluster_name>-cluster-ServiceRole-10FMX3LU9UVU because no identity-based policy allows the iam:CreateRole action"

Is it possible to use eksctl without creating a role?

@github-actions
Copy link
Contributor

Hello ecpullen 👋 Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-3 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

@cPu1 cPu1 added the kind/help Request for help label Jun 22, 2022
@cPu1
Copy link
Collaborator

cPu1 commented Jun 22, 2022

iam:
  serviceRoleArn: arn:aws:iam::***************:role/*********************

The casing for the field is incorrect, it should be serviceRoleARN. Fields in ClusterConfig are case-sensitive.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jul 23, 2022
@cPu1
Copy link
Collaborator

cPu1 commented Jul 25, 2022

iam:
  serviceRoleArn: arn:aws:iam::***************:role/*********************

The casing for the field is incorrect, it should be serviceRoleARN. Fields in ClusterConfig are case-sensitive.

@ecpullen, this should work. Please feel free to open a new issue if you have more questions.

@cPu1 cPu1 closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/help Request for help stale
Projects
None yet
Development

No branches or pull requests

2 participants