input transformer in eventbridge giving error 'targets.1.member.inputTransformer.inputPathsMap' failed to satisfy constraint

0

Hi, i am trying to customize my output using input transformer, but I am getting this error at 'targets.1.member.inputTransformer.inputPathsMap' failed to satisfy constraint: Map keys must satisfy constraint: [Member must have length less than or equal to 256, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: [A-Za-z0-9_-]+]. I am not able to understand whats the actual error, I have included all the path correctly and also in in template all are in between double quotes but still getting this error. i am trying it for cloudtrail events. below is my input path

{
  "time": "$.time",
  "region": "$.region",
  "sourceIPAddress": "$.detail.sourceIPAddress",
  "eventName": "$.detail.eventName",
  "routeTableId" : "$.detail.requestParameters[0].routeTableId",
  "arnId": "$.detail.userIdentity[0].arn",
  "userName": "$.detail.userIdentity[0].userName",
  "vpcId": "$.detail.requestParameters[0].vpcId",
  "detail.type": "$.detail-type",
  "eventType": "$.eventType"
}

If anyone can help me to resolve the issue it will be really helpful for me

asked 2 years ago105 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions