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.
Mitigation
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.
Bug description
In versions
3.0.0
to3.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 includelogs:TagResource
andlogs: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:If you are deploying the API with a custom role, or using the ParallelCluster CLI with specific IAM permissions, the
logs:TagResource
andlogs:UntagResource
actions need to be added to your policy.Mitigation
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.
ParallelClusterClusterPolicy
Sid
matchingCloudWatchLogs
logs:TagResource
logs:UntagResource
ParallelClusterBuildImageManagedPolicy
Sid
matchingCloudWatch
This will expand the policies used by the Lambda to include the new required policy to perform ParallelCluster operations.
You can find a detailed explanation and the mitigation of the problem wiki