CloudWatch Events
Kubemq cloudwatch-events target connector allows services using kubemq server to access aws cloudwatch-events service.

Prerequisites

The following required to run the aws-cloudwatch-events target connector:
  • kubemq cluster
  • aws account with cloudwatch-events active service (IAM Permission under EventBridge)
  • kubemq-source deployment

Configuration

cloudwatch-events target connector configuration properties:
Properties Key
Required
Description
Example
aws_key
yes
aws key
aws key supplied by aws
aws_secret_key
yes
aws secret key
aws secret key supplied by aws
region
yes
region
aws region
token
no
aws token ("default" empty string
aws token
Example:
1
bindings:
2
- name: kubemq-query-aws-cloudwatch-events
3
source:
4
kind: kubemq.query
5
name: kubemq-query
6
properties:
7
address: "kubemq-cluster:50000"
8
client_id: "kubemq-query-aws-cloudwatch-events"
9
auth_token: ""
10
channel: "query.aws.cloudwatch.events"
11
group: ""
12
auto_reconnect: "true"
13
reconnect_interval_seconds: "1"
14
max_reconnects: "0"
15
target:
16
kind: aws.cloudwatch.events
17
name: aws-cloudwatch-events
18
properties:
19
aws_key: "id"
20
aws_secret_key: 'json'
21
region: "region"
22
token: ""
Copied!

Usage

Put Target

Put Target:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"put_targets"
rule
yes
aws existing rule name
"string"
data
yes
Key value pair of target ARN and ID
{"my_arn_id":"arn:aws:test:number:function:id"}
Example:
1
{
2
"metadata": {
3
"method": "put_targets",
4
"rule": "my_rule"
5
},
6
"data": "eyJteV9hcm5faWQiOiJhcm46YXdzOnRlc3Q6bnVtYmVyOmZ1bmN0aW9uOmlkIn0"
7
}
Copied!

List Event Buses

List Event Buses:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"list_buses"
limit
no
limit of return buses
"int"
Example:
1
{
2
"metadata": {
3
"method": "list_buses",
4
"limit": "1"
5
},
6
"data": null
7
}
Copied!

Send Event

Send Event:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"send_event"
detail
no
general details on the event
"string"
detail_type
no
event type
"string"
source
no
aws source to assign the message to
"string"
data
yes
aws resources to assign the event to
slice of strings ("arn:string")
Example:
1
{
2
"metadata": {
3
"method": "send_event",
4
"detail": "{ some detail }",
5
"detail_type": "appRequestSubmitted",
6
"source": "kubemq_testing"
7
},
8
"data": "WyJhcm46YXdzOnNpdGU6cmVnaW9uOmlkOmZ1bmN0aW9uOm15LWZ1bmN0aXNvbnMiXQ=="
9
}
Copied!
Last modified 11mo ago