Skip to content

Commit 04728d4

Browse files
author
Bob Strahan
committed
fix: add security configuration for Glue crawler with KMS encryption
1 parent ae458ec commit 04728d4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

template.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,13 +1581,29 @@ Resources:
15811581
- Name: date
15821582
Type: string
15831583

1584+
DocumentSectionsCrawlerSecurityConfiguration:
1585+
Type: AWS::Glue::SecurityConfiguration
1586+
Properties:
1587+
Name: !Sub "${AWS::StackName}-document-sections-crawler-security-config"
1588+
EncryptionConfiguration:
1589+
S3Encryptions:
1590+
- S3EncryptionMode: SSE-KMS
1591+
KmsKeyArn: !GetAtt CustomerManagedEncryptionKey.Arn
1592+
CloudWatchEncryption:
1593+
CloudWatchEncryptionMode: SSE-KMS
1594+
KmsKeyArn: !GetAtt CustomerManagedEncryptionKey.Arn
1595+
JobBookmarksEncryption:
1596+
JobBookmarksEncryptionMode: CSE-KMS
1597+
KmsKeyArn: !GetAtt CustomerManagedEncryptionKey.Arn
1598+
15841599
DocumentSectionsCrawler:
15851600
Type: AWS::Glue::Crawler
15861601
Properties:
15871602
Name: !Sub "${AWS::StackName}-document-sections-crawler"
15881603
Description: "Crawler to discover document section tables in the reporting bucket with conservative schema handling"
15891604
Role: !GetAtt DocumentSectionsCrawlerRole.Arn
15901605
DatabaseName: !Ref ReportingDatabase
1606+
CrawlerSecurityConfiguration: !Ref DocumentSectionsCrawlerSecurityConfiguration
15911607
Targets:
15921608
S3Targets:
15931609
- Path: !Sub

0 commit comments

Comments
 (0)