1 Answer
- Newest
- Most votes
- Most comments
1
I ran into the same issue today, seems like a bug with the AWS Console because I was able to create the rule through the CLI.
Here is the command:
aws iot create-topic-rule --rule-name <RULE_NAME> --topic-rule-payload file://iot.json
and the input file:
{
"sql": "<SQL_COMMAND>",
"description": "",
"actions": [
{
"kafka": {
"destinationArn": "arn:aws:iot:******************",
"topic": "<TOPIC>",
"clientProperties": {
"acks": "1",
"bootstrap.servers": "****************************",
"compression.type": "none",
"key.serializer": "org.apache.kafka.common.serialization.StringSerializer",
"sasl.mechanism": "SCRAM-SHA-512",
"sasl.scram.password": "************",
"sasl.scram.username": "*******************",
"security.protocol": "SASL_SSL",
"value.serializer": "org.apache.kafka.common.serialization.ByteBufferSerializer"
}
}
}
]
}
answered a year ago
Relevant content
- asked 2 years ago
- asked 4 months ago
- Accepted Answerasked 3 years ago
- asked 2 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago
Thank you for your answer! I had a feeling it was a bug in AWS Console, but being a noob here, I wasn't sure. I tried the CLI approach and that worked for me. kafka processing messages!
I'm not accepting this as the answer, because I believe the answer is for AWS to fix the Console.