Skip to content

aws events put-targets add a Json Input #7343

Answered by nouhab
nouhab asked this question in Q&A
Discussion options

You must be logged in to vote

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\""
}]

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@nouhab
Comment options

@aBurmeseDev
Comment options

@nouhab
Comment options

@aBurmeseDev
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@aBurmeseDev
Comment options

Answer selected by aBurmeseDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants