Invalid InputTemplate for target


I´m trying to test this

Input path:

  "requester": "$.detail.requester",
  "key": "$.detail.object.key",
  "bucket": "$"

Input template:

    "<requester> has created the object \"<key>\" in the bucket \"<bucket>\"",
    "RuleName": <>,
    "ruleArn" : <>,
    "Transformed": "Yes"

but I´m getting this error message: Invalid InputTemplate for target Id1723290b-5086-4e82-ab16-5605fd17fb0e : [Source: (String)"{ "null has created the object "null" in the bucket "null"", "RuleName": null, "ruleArn" : null, "Transformed": "Yes" }"; line: 2, column: 67].

Any ideas why? thanks a lot

1개 답변
수락된 답변


I was able to confirm in my environment that the input template etc. worked with the settings as described in the document.
Maybe something went wrong when copy-pasting.
Try typing it manually instead of copy-pasting.
Also, be sure to select "S3 Object Created" for the sample event.

profile picture
답변함 4달 전
  • Don´t know why this input template hasn´t worked for me, had to add a ":" and string at the end of 1st line.

    Something like this:

    { "<requester> has created the object "<key>" in the bucket "<bucket>"": "string", "RuleName": <>, "ruleArn" : <>, "Transformed": "Yes" }

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠