Skip to content

Commit

Permalink
fix: Add example for multi target run command
Browse files Browse the repository at this point in the history
  • Loading branch information
Arielgordon123 committed Mar 21, 2024
1 parent fb74100 commit a7d34c3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,32 @@ module "eventbridge" {
{
name = "log-orders-to-cloudwatch"
arn = aws_cloudwatch_log_group.this.arn
},
{
name = "run-shell-script-one-target"
arn = "arn:aws:ssm:${data.aws_region.current.name}::document/AWS-RunShellScript"
input = "{\"commands\": [\"uptime\"]}"
run_command_targets = [
{
key = "InstanceIds"
values = ["i-123456"]
}
]
},
{
name = "run-shell-script-multi-target"
arn = "arn:aws:ssm:${data.aws_region.current.name}::document/AWS-RunShellScript"
input = "{\"commands\": [\"uptime\"]}"
run_command_targets = [
{
key = "tag:Name"
values = ["FooBar"]
},
{
key = "InstanceIds"
values = ["i-123456"]
}
]
}
]

Expand Down

0 comments on commit a7d34c3

Please sign in to comment.