We’re trying to set up Hopsworks on our AWS account. We followed the documentation on this page link, but when we reach the point to create the cluster we get the following error:
We could not fetch the role arn for the provided instance profile. Make sure that the instance profile and the role are correctly attached. This can for example happen if the user creating the instance profile did not have the iam:AddRoleToInstanceProfile permission.
(error code: 400)
As far as we can tell from the AWS console, the role and policy we created when following the steps in the guide are correctly attached. What are we missing?
Can you check from using the following aws cli command if the instance profile you have created has an attached role to it. aws iam get-instance-profile --instance-profile-name <YOUR_INSTANCE_PROFILE_NAME>
You should get a similar output. Also, regarding the documentation, the link you are sharing is obsolete here is a link to the latest documentation
It seems indeed the issue was that we were following the obsolete documentation. We started from scratch with the documentation you shared and were able to get a cluster up and running without further issue.