github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/ssm_maintenance_window_target.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_ssm_maintenance_window_target" 4 sidebar_current: "docs-aws-resource-ssm-maintenance-window-target" 5 description: |- 6 Provides an SSM Maintenance Window Target resource 7 --- 8 9 # aws_ssm_maintenance_window_target 10 11 Provides an SSM Maintenance Window Target resource 12 13 ## Example Usage 14 15 ```hcl 16 resource "aws_ssm_maintenance_window" "window" { 17 name = "maintenance-window-webapp" 18 schedule = "cron(0 16 ? * TUE *)" 19 duration = 3 20 cutoff = 1 21 } 22 23 resource "aws_ssm_maintenance_window_target" "target1" { 24 window_id = "${aws_ssm_maintenance_window.window.id}" 25 resource_type = "INSTANCE" 26 targets { 27 key = "tag:Name" 28 values = ["acceptance_test"] 29 } 30 } 31 ``` 32 33 ## Argument Reference 34 35 The following arguments are supported: 36 37 * `window_id` - (Required) The Id of the maintenance window to register the target with. 38 * `resource_type` - (Required) The type of target being registered with the Maintenance Window. Possible values `INSTANCE`. 39 * `targets` - (Required) The targets (either instances or tags). Instances are specified using Key=instanceids,Values=instanceid1,instanceid2. Tags are specified using Key=tag name,Values=tag value. 40 * `owner_information` - (Optional) User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window. 41 42 ## Attributes Reference 43 44 The following attributes are exported: 45 46 * `id` - The ID of the maintenance window target.