Hello, I am unable to find terraform to support filling out the details in the photo to configure parameters for the “Configure target input” type of “Constant.”
My terraform code currently looks something like the below, but this code will not fill in those same sections. From the event bridge target tab everything seems to be correct, but when I click to edit to check if it was filled out, it’s all blank and won’t work and I’m not receiving any errors. I’ve tried many things, but this is the baseline I’ve come back to. Any help would be greatly appreciated!
@SiSi2018 If you have access to CloudTrail, you can inspect the PutTargets event and see how the AWS API is invoked.
I did a quick test and I see that when configure target input is set to constant, it simply adds an object to the input parameter based on the other fields. Here is the request body when I added an echo command:
On the other hand, leaving the setting as Matched events would simply not include the input parameter.
I couldn’t find any “schema” for the input for an SSM run command target in the API reference, so I guess the best way is to reference the CloudTrail event after you’ve created a target with the same parameter in the AWS Management Console.