Skip to content
Discussion options

You must be logged in to vote

This is my workaround, be aware that this does not work for aws.events.event.json and that if you remove EventField.fromPath("$") it becomes a contant instead of an input transform.

const inputTransformerEvent = RuleTargetInput.fromObject({
  ruleName: "<aws.events.rule-name>",
  originalEvent: EventField.fromPath("$"),
  });
{
      "Arn": {
       "Fn::GetAtt": [
        "",
        "Arn"
       ]
      },
      "Id": "",
      "InputTransformer": {
       "InputPathsMap": {
        "f1": "$"
       },
       "InputTemplate": "{\"ruleName\":\"<aws-events-rule-name>\",\"originalEvent\":<f1>}"
      }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by luisMolina95
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant