為什麼我會收到 Lake Formation 許可錯誤:lakeformation:新增資料湖管理員PutDataLakeSettings 時? - AWS HealthLake

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

為什麼我會收到 Lake Formation 許可錯誤:lakeformation:新增資料湖管理員PutDataLakeSettings 時?

如果您的IAM使用者或角色包含 AWSLakeFormationDataAdmin AWS 受管政策,則無法新增資料湖管理員。您會收到包含下列項目的錯誤:

User arn:aws:sts::111122223333:assumed-role/lakeformation-admin-user is not authorized to perform: lakeformation:PutDataLakeSettings on resource: arn:aws:lakeformation:us-east-2:111122223333:catalog:111122223333 with an explicit deny in an identity-based policy

AdministratorAccess 需要 AWS 受管政策,才能將IAM使用者或角色新增為 AWS Lake Formation 資料湖管理員。如果您的IAM使用者或角色也包含 AWSLakeFormationDataAdmin 動作將會失敗。AWSLakeFormationDataAdmin AWS 受管政策包含 AWS Lake Formation API操作 的明確拒絕PutDataLakeSetting

即使是具有AWS使用 AdministratorAccessAWS受管政策之完整存取權的管理員,也會受到AWSLakeFormationDataAdmin政策的限制。