LakeFormation 权限返回“ALL”

问题描述

我注意到 LakeFormation SDK 调用(通过 AWS CLI 的 boto3 和通过 terraform 的 Go)在分配给资源的权限列表中返回 ALL

例如:

    "PrincipalResourcePermissions": [
        {
            "Principal": {
                "DataLakePrincipalIdentifier": "arn:aws:iam::ACCOUNT:role/FooRole"
            },"Resource": {
                "Table": {
                    "CatalogId": "ACCOUNT","DatabaseName": "lf_test","Name": "foo"
                }
            },"Permissions": [
                "ALL","DESCRIBE"
            ],"PermissionsWithGrantOption": []
        }

但是,我无法删除此“全部”权限。尝试使用 AWS CLI 或 terraform 撤销会导致错误

An error occurred (InvalidInputException) when calling the RevokePermissions operation: No permissions revoked. Grantee does not have:[ALL]

这里发生了什么,除了特殊大小写以忽略“ALL”之外,我该如何修复它?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)