-
Notifications
You must be signed in to change notification settings - Fork 312
(3.0.0 3.2.1) ParallelCluster API cannot create new cluster
In versions 3.0.0
to 3.2.1
of ParallelCluster, the API is by default deployed with a role that includes the IAM permissions required to perform the operations of the API. Due to a recent change in the CloudWatch service, the permissions required to create a cluster were expanded (to include logs:TagResource
and logs:UntagResource
), As a result, any existing API deployed using the default role will lack sufficient permissions to create new clusters. When creating a cluster, the CloudFormation stack will show resources with the following error:
User with accountId: XXX is not authorized to perform CreateLogGroup with Tags (Service: CloudWatchLogs, Status Code: 400, Request ID: 4c848ae1-5ff5-43dc-b67b-fd1a0f8cc33e)
If you are deploying the API with a custom role, or using the ParallelCluster CLI with specific IAM permissions, the logs:TagResource
and logs:UntagResource
actions need to be added to your policy.
To work around the issue on an existing deployed API, you will need to expand the permissions of the role used by the deployed Lambda.
- Navigate to the IAM Management Console > Policies
- Search for
ParallelClusterClusterPolicy
- Search for the actions with
Sid
matchingCloudWatchLogs
- Edit the matching policy to add the following two permissions to the
logs:TagResource
logs:UntagResource
- Search for
ParallelClusterBuildImageManagedPolicy
- Search for the actions with
Sid
matchingCloudWatch
- Repeat Step 4 above for the policy.
This will expand the policies used by the Lambda to include the new required policy to perform ParallelCluster operations.