Skip to content

Commit

Permalink
fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
randyridgley committed May 4, 2022
1 parent eb16da3 commit 3556633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data-lake-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,12 @@ export abstract class LakeImplStrategy {
}

private registerDataLakeLocation(stack: Stack, datalakeDbCreatorRoleArn: string, bucketName: string, name: string) : CfnResource {
const dlResource = new CfnResource(stack, `lf-resource-${bucketName}`, {
const dlResource = new CfnResource(stack, `lf-resource-${name}`, {
resourceArn: `arn:aws:s3:::${bucketName}`,
useServiceLinkedRole: false,
roleArn: datalakeDbCreatorRoleArn,
});
this.createDataLocationAccessPermission(stack, `${bucketName}-creator`, datalakeDbCreatorRoleArn, bucketName, dlResource);
this.createDataLocationAccessPermission(stack, `${name}-creator`, datalakeDbCreatorRoleArn, bucketName, dlResource);
return dlResource;
}

Expand Down

0 comments on commit 3556633

Please sign in to comment.