Select Language:
If your IAM roles are stuck in an “adding” or “removing” state in Amazon Redshift Serverless for more than 30 minutes, here are some straightforward steps to fix the issue:
First, use the AWS Command Line Interface to manually update the namespace and specify the IAM roles you want to associate. You can do this by running the following command:
aws redshift-serverless update-namespace –namespace-name YOUR_NAMESPACE_NAME –iam-roles “YOUR_IAM_ROLE_ARN”
Make sure to replace “YOUR_NAMESPACE_NAME” with your actual namespace name and “YOUR_IAM_ROLE_ARN” with the ARN of your IAM role.
Next, check if the IAM role has the correct trust relationship. The trust policy should allow Amazon Redshift to assume this role. If it doesn’t, update the trust policy so that the redshift.amazonaws.com service is included.
After that, verify that the IAM role has all the permissions needed for your current tasks. Without the right permissions, the role won’t perform as expected.
If you’re assigning this role to specific database users, ensure you’re using the correct ARN format. For Amazon Redshift Serverless users, the format looks like this:
arn:aws:redshift:region:account-id:dbuser:serverless-account-id-workgroup-id/user-name
Finally, if the problem continues after these steps, it’s a good idea to contact AWS Support. Sometimes, persistent issues are due to underlying service problems that only AWS can resolve.
Keep in mind that changes to IAM roles and permissions can take some time to fully update across AWS systems. However, if your updates are taking longer than 30 minutes, it’s probably time to reach out for assistance.





