-
hello , How can i add a json input to aws events bridge rule using aws cli. But when i try this command to add json input I get this error
Any suggestion to resole this problem please ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @nouhab - thanks for reaching out. I think the issue here is that This should work for you:
Please let me know if that helps! Best, |
Beta Was this translation helpful? Give feedback.
-
I change the aws cli version to the last one and I re-run the commande, but i still get the error 2022-10-17 19:40:43,088 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): events.eu-central-1.amazonaws.com:443 An error occurred (ValidationException) when calling the PutTargets operation: JSON syntax error in input for target 1: [Source: (String)"token:health"; line: 1, column: 6] |
Beta Was this translation helpful? Give feedback.
-
hello i resolve the problem by folowwing this example |
Beta Was this translation helpful? Give feedback.
hello i resolve the problem by folowwing this example
aws events put-targets
--rule stop-ec2-instance
--targets "[{
"Arn": "arn:aws:automation:ap-northeast-1:012345678901:action/EC2StopInstance/EC2StopInstance_stop-ec2-instance",
"Id": "EC2StopInstance_stop-ec2-instance",
"Input": "\"arn:aws:ec2:ap-northeast-1:012345678901:instance/i-01234567\""
}]