I am trying to delete a provisioned Amazon Redshift cluster that is integrated with the AWS Glue Data Catalog (lakehouse / unified governance). The deletion is blocked with:
The cluster has an associated lakehouse glue catalog. Deregister it before you delete the cluster.
When I run the deregistration:
aws redshift modify-lakehouse-configuration \
--region <region> \
--lakehouse-registration Deregister \
--cluster-identifier <cluster-identifier>
it fails with:
An error occurred (UnauthorizedOperation) when calling the ModifyLakehouseConfiguration operation:
You don't have permission to run Glue:GetCatalog.
This happens even though the role I am using has the AdministratorAccess IAM policy, and even after I attached the AWSLakeFormationDataAdmin managed IAM policy. Why does Glue:GetCatalog still fail, and what does the role actually need to complete the deregistration and delete the cluster?
Answer
The lakehouse catalog associated with the cluster is governed by AWS Lake Formation, not by IAM alone. During deregistration, Redshift calls Glue:GetCatalog against that catalog on your behalf, and Lake Formation evaluates whether the calling role is authorized as a Lake Formation principal.
The key point: being a Lake Formation Data Lake administrator is a Lake Formation setting, which is not the same as attaching an IAM policy such as AWSLakeFormationDataAdmin.
- The IAM policy grants the API permissions to call Lake Formation.
- Being a Data Lake administrator is a registration inside Lake Formation itself (the list of administrator principals for the account and Region).
If the role is not registered as a Data Lake administrator (or does not hold an equivalent Lake Formation permission on the catalog), Lake Formation denies the Glue:GetCatalog call during deregistration, regardless of the role's IAM permissions. That is why an IAM administrator policy alone does not get past this step.
Resolution
Complete these steps in order.
1. Register the role as a Lake Formation Data Lake administrator
In the account and Region where the cluster lives:
Console
- Open the Lake Formation console.
- Go to Administration, then Administrative roles and tasks (in some console versions, Data lake administrators).
- Under Data lake administrators, choose Add, select the role that will perform the deregistration, and save.
AWS CLI
This call replaces the administrator list, so include any existing administrators as well:
aws lakeformation put-data-lake-settings \
--region <region> \
--data-lake-settings '{"DataLakeAdmins":[{"DataLakePrincipalIdentifier":"arn:aws:iam::<account-id>:role/<role-name>"}]}'
The principal making this change must already be a Data Lake administrator. If your deregistration role is not one and you have no other administrator, have an existing Data Lake administrator add it first.
2. Deregister the lakehouse configuration
Signed in as that role, run:
aws redshift modify-lakehouse-configuration \
--region <region> \
--lakehouse-registration Deregister \
--cluster-identifier <cluster-identifier>
3. Delete the cluster
Once the deregistration succeeds:
aws redshift delete-cluster \
--region <region> \
--cluster-identifier <cluster-identifier> \
--skip-final-cluster-snapshot
Use --final-cluster-snapshot-identifier <name> instead of --skip-final-cluster-snapshot if you want to retain a final snapshot.
Note on network / organization policies
If your account uses a network-based control (for example, a Service Control Policy that restricts access by source IP or VPC endpoint), run the deregistration from an allowed network location. A network block produces a different error (an explicit AccessDenied naming the policy on ModifyLakehouseConfiguration), which is distinct from the Glue:GetCatalog permission error above.
How to tell the two errors apart
| Error | Layer | Fix |
|---|
AccessDenied ... explicit deny in a service control policy on ModifyLakehouseConfiguration | Network / organization policy | Run from an allowed network location, or have your Org admin adjust the policy |
UnauthorizedOperation: You don't have permission to run Glue:GetCatalog | Lake Formation authorization | Register the role as a Lake Formation Data Lake administrator (Step 1 above) |
References
- Deregister from the AWS Glue Data Catalog (Amazon Redshift, provisioned)
- Lake Formation personas and IAM permissions reference (Data Lake administrator)
- Create a data lake administrator
If my answer was helpful, I would appreciate it if you could mark it as the accepted answer.