Skip to content

Instantly share code, notes, and snippets.

@alessandrobologna
Created May 27, 2019 15:02
Show Gist options
  • Save alessandrobologna/dad2f758f5f84cd3827179d900315545 to your computer and use it in GitHub Desktop.
Save alessandrobologna/dad2f758f5f84cd3827179d900315545 to your computer and use it in GitHub Desktop.
GlueNotificationEventRule:
Type: AWS::Events::Rule
Properties:
Name: !Sub '${ProjectName}-glue-events-${Stage}'
State: ENABLED
EventPattern:
source:
- aws.glue
detail-type:
- Glue Data Catalog Database State Change
Targets:
- Arn: !GetAtt 'ControlStream.Arn'
Id: !Sub '${ProjectName}-glue-events-kinesis-${Stage}'
RoleArn: !GetAtt 'EventsDeliveryRole.Arn'
KinesisParameters:
PartitionKeyPath: $.source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment