Skip to main content

EventBridge Integration

Forward pipeline events from DevRamps to your own Amazon EventBridge event bus. Use EventBridge rules to trigger Lambda functions, Step Functions, SNS notifications, or any other AWS service when pipeline events occur.

Overview

Once connected, DevRamps automatically sends all supported pipeline events to your event bus. Events include stage failures, approval requests, and rollback notifications. You can filter and route events on your bus using standard EventBridge rules.

Supported Events

Detail TypeDescription
Stage StartedA deployment stage has started executing
Stage SucceededA deployment stage completed successfully
Stage FailedA deployment stage has failed
Approval RequiredA manual approval step is waiting for action
Stage Auto Rolled BackA stage was automatically rolled back (e.g., via CloudWatch alarm)
Stage Rolled BackA user manually triggered a rollback
Stage Rolled ForwardA user manually triggered a roll-forward
Step StartedA pipeline step has started (includes deploy steps, artifact builds, and pipeline synthesis)
Step SucceededA pipeline step completed successfully
Step SkippedA pipeline step was skipped (emitted alongside step succeeded)
Ephemeral Environment ClaimedAn ephemeral environment lock was acquired
Ephemeral Environment ReleasedAn ephemeral environment lock was released
Ephemeral Deployment SucceededAn ephemeral environment deployment completed successfully
Ephemeral Deployment FailedAn ephemeral environment deployment failed

Prerequisites

  1. An EventBridge event bus must already exist in your AWS account
  2. The CI/CD role must have events:PutEvents permission. This is included by default for roles created with CLI version 0.8.0+. If you bootstrapped before this version, re-run npx @devramps/cli bootstrap to update your role permissions.

Connecting

  1. Navigate to Organization Settings > Integrations
  2. Find the EventBridge card and click Connect
  3. Enter your Event Bus ARN (e.g., arn:aws:events:us-east-1:123456789012:event-bus/my-bus)
  4. Click Connect -- DevRamps will send a test event to verify connectivity
  5. If successful, the integration is active and all pipeline events will be forwarded

Event Schema

All events are sent with Source: "devramps" and a human-readable DetailType.

Event Detail Structure

{
"eventType": "stage_failed",
"pipeline": {
"id": "uuid",
"name": "My Pipeline",
"slug": "my-pipeline"
},
"stage": {
"name": "production"
},
"step": {
"name": "deploy-ecs"
},
"cause": "ECS service failed to stabilize",
"commit": {
"id": "abc123def",
"message": "Fix login bug"
},
"organization": {
"slug": "my-org"
},
"timestamp": "2024-01-15T10:30:00.000Z",
"dashboardUrl": "https://devramps.com/dashboard-new/pipeline/my-pipeline"
}

Fields like step, cause, and commit are included only when applicable to the event type.

Example EventBridge Rules

Route all failures to SNS

{
"source": ["devramps"],
"detail-type": ["Stage Failed"]
}

Route approval requests to a Lambda function

{
"source": ["devramps"],
"detail-type": ["Approval Required"]
}

Route all rollback events

{
"source": ["devramps"],
"detail-type": ["Stage Auto Rolled Back", "Stage Rolled Back", "Stage Rolled Forward"]
}

Troubleshooting

ErrorCauseSolution
Permission deniedCI/CD role lacks events:PutEventsRe-bootstrap with npx @devramps/cli bootstrap
Event bus not foundARN is incorrect or bus does not existVerify the ARN and that the bus exists in your account
Connection failedCI/CD account not configuredConfigure your AWS CI/CD account in Organization Settings first

Disconnecting

  1. Navigate to Organization Settings > Integrations
  2. Find the EventBridge card (showing "Connected")
  3. Click Disconnect

Events will stop being forwarded immediately. No events are lost from other notification providers (e.g., Slack).