Skip to main content

EventBridge Module

Configuration in this directory creates eventbridge to send the aws events to your coralogix account.

Usage

module "eventbridge_coralogix" {
source = "github.com/coralogix/terraform-coralogix-aws//modules/eventbridge"
eventbridge_stream = var.coralogix_eventbridge_stream_name
role_name = var.eventbridge_role_name
private_key = var.coralogix_privatekey
coralogix_region = var.coralogix_region
custom_url = var.custom_url
sources = var.eventbridge_sources
application_name = var.application_name
policy_name = var.policy_name
}
  • Override Coralogix applicationName: The application name by default is the eventbridge delivery stream name, but it can be overriden by setting an environment variable called application_name.

Coralogix account region

The coralogix region variable accepts one of the following regions:

  • EU1
  • EU2
  • AP1
  • AP2
  • AP3
  • US1
  • US2
  • Custom

Endpoints

RegionLogs Endpoint
EU1https://ingress.eu1.coralogix.com/aws/event-bridge
EU2https://ingress.eu2.coralogix.com/aws/event-bridge
AP1https://ingress.ap1.coralogix.com/aws/event-bridge
AP2https://ingress.ap2.coralogix.com/aws/event-bridge
AP3https://ingress.ap3.coralogix.com/aws/event-bridge
US1https://ingress.us1.coralogix.com/aws/event-bridge
US2https://ingress.us2.coralogix.com/aws/event-bridge
Customhttps://ingress.<custom_domain>/aws/event-bridge

Requirements

NameVersion
terraform>= 1.9
aws>= 6.0

Providers

NameVersion
aws>= 6.0

Resources

Inputs

NameDescriptionTypeDefaultRequired
application_nameCoralogix application namestringn/ayes
coralogix_regionCoralogix account region. Accepted values: EU1, EU2, AP1, AP2, AP3, US1, US2, Customstringn/ayes
custom_urlCustom coralogix urlstringnullno
eventbridge_streamAWS eventbridge delivery stream namestringn/ayes
private_keyYour Coralogix private keystringn/ayes
role_nameThe name of the eventbridge rolestringn/ayes
sourcesThe services for which we will send eventslist(any)
[
"aws.ec2",
"aws.autoscaling",
"aws.cloudwatch",
"aws.events",
"aws.health",
"aws.rds"
]
no
policy_nameCustom aws_iam_policystringEventBridge_policyno
detail_typeAWS eventbridge detail type for the rule to filter bylist(string)nullno

Outputs

No outputs.

Events Sources

EC2

  • AWS API call via cloudtrail
  • EBS Fast Snapshot Restore State-change Notification
  • EBS Multi-Volume Snapshots Completion Status
  • EBS Snapshot Notification
  • EBS Volume Notification
  • EC2 AMI State Change
  • EC2 Fast Launch State-change Notification
  • EC2 Instance Rebalance Recommendation
  • EC2 Instance State-change Notification
  • EC2 Spot Instance Interruption Warning
  • EC2 Spot Instance Request Fulfillment

AutoScaling

  • AWS API call via cloudtrail
  • Instance launch and terminate
  • Instance refresh

Cloudwatch

  • AWS API call via cloudtrail
  • CloudWatch alarm state change
  • CloudWatch alarm configuration change

Events

  • AWS API call via cloudtrail
  • EventBridge scheduled event

Health

  • AWS API call via cloudtrail
  • Specific health events

RDS

  • AWS API call via cloudtrail
  • DB cluster event
  • DB cluster snapshot event
  • DB instance event
  • DB parameter group event
  • DB security group event
  • DB snapshot event

For further information on additional events sources and event types, see this AWS doc

Examples

Examples can be found under the examples directory

Last updated on