Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alessandrobologna/f0fe47e1ea7b137dad4bd5bf3c179859 to your computer and use it in GitHub Desktop.
Save alessandrobologna/f0fe47e1ea7b137dad4bd5bf3c179859 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