-
Notifications
You must be signed in to change notification settings - Fork 20
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
Can't attach a new IAM policy to the Head node #246
Comments
The problem is in the Lambda role:
I updated the following statement and added a line that doesn't require the policy to start with parallelcluster and I was able to add my policy.
|
Hi @cartalla, this is a known issue with PCluster. Look at aws-samples/pcluster-manager#384 (comment) for more info. There's also another workaround available in the comment. |
Why is this closed? This point to an issue in the old pcluster-manager repo which is superceded by this one. Also, since this is such a simple bug fix, why hasn't it been fixed in the several releases since it was filed? I just hit this again during testing with a new version of pcluster and all I'm doing is following the instructions to use the slurm db. |
I have also just hit this issue, so not sure why it is closed! The workaround is very much a workaround, not a fix. More fundamentally I'm wondering why there is a list of allowed policies that one can attach/detach via the UI in the first place, especially given there is no such restriction when creating/updating a cluster via the CLI. Is it because of the security implications of users assuming the UI IAM role when they are using the UI? It would be good to know what the rationale for this is. UPDATE: |
Hi @regoawt , thanks for raising up our attention on this. The rationale behind that limitation was security: disabling by default the privileged IAM access mode. Such rationale is still valid, but I agree with you all that we should provide a smoother customer experience to enable it. We will let you know here our plans for it. |
Thanks for the reply @gmarciani, I can see why this is the default behaviour, makes sense. But yes, looking forward to having an easier way around it! |
Description
I tried to add a new IAM policy to the Head node of an existing cluster. When I do I get the following error in the CFN stack for the
cluster and the update fails:
Steps to reproduce the issue
Expected behaviour
Update succeeds and new managed policy added to the head node role.
Actual behaviour
Update fails
Required info
In order to help us determine the root cause of the issue, please provide the following information:
Additional info
The following information is not required but helpful:
If having problems with cluster creation or update
YAML file generated by the ParallelCluster UI
If having problems with custom image creation
YAML file of the custom image
The text was updated successfully, but these errors were encountered: