aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.11k stars 54 forks source link

InternalFailure on `AWS::LakeFormation::PrincipalPermissions` resource #1381

Closed lucasvieirasilva closed 1 year ago

lucasvieirasilva commented 1 year ago

Name of the resource

Other

Resource Name

AWS::LakeFormation::PrincipalPermissions

Issue Description

I'm having issues with the AWS::LakeFormation::PrincipalPermissions resource to grant permissions to lake formation tags for IAM roles.

The issue only happens when the permissions ASSOCIATE and DESCRIBE are used together, I've tested only with DESCRIBE or only ASSOCIATE, and both work okay.

CloudFormation Event Entry:

image

CloudFormation Resource:

{
...
"PermissionMyRoleCategory": {
   "Type": "AWS::LakeFormation::PrincipalPermissions",
   "Properties": {
    "Permissions": [
     "ASSOCIATE",
     "DESCRIBE"
    ],
    "PermissionsWithGrantOption": [
     "ASSOCIATE",
     "DESCRIBE"
    ],
    "Principal": {
     "DataLakePrincipalIdentifier": "arn:aws:iam::123456789012:role/my-role"
    },
    "Resource": {
     "LFTag": {
      "CatalogId": "123456789012",
      "TagKey": "Category",
      "TagValues": [
       "*"
      ]
     }
    }
   }
  }
...
}

Expected Behavior

The permissions should be granted and not fail the stack.

Observed Behavior

Test Cases

Other Details

No response

aws-gclend commented 1 year ago

Duplicate of #1323