eventbridge

command
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 9 Imported by: 0

README

EventBridge

The ACME Serverless Fitness Shop leverages Amazon EventBridge as a serverless event bus to connect microservices together.

Create the eventbus

To create the eventbus you'll need the AWS CLI installed and configured. After that you can run

aws events create-event-bus --name acmeserverless

Sending events to test

To send a message to the EventBus using the test data from the files in any of the subfolders, you can use the Go app in the test folder. The app has three required flags and one optional one:

  • event: The name of event to send (required)
  • bus: The name of the Amazon EventBridge bus to send events to (required)
  • service: The ACME Serverless Fitness Shop service to send events to (required)
  • region: The region to send requests to (optional, defaults to us-west-2)
go run main.go -event=<any of the files existing in the folder of the specific service> -bus=<name of the custom bus> -service=<name of the service>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL