-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request - Add support for AUTOMATION in aws_ssm_maintenance_window_task resource #4408
Comments
@philmadden83 looks like the resource does not currently perform plan-time validation of the We can of course update the documentation to support this new value or point to the relevant AWS documentation for the acceptable values. |
@bflad I can confirm that specifying the task type The for example: If I create the below widnow task referencing my automation document arn and specify the parameters to use..
Everything is created as expected however, when I inspect the above window task and look at the input parameters I get the below. The task paramter values defined in the .tf file have not been set. If I manually enter the values and save it (as per the below image) and run a plan, Terraform wants to remove the input parameter values I maunally entered (naturally).
As a result, any execution of the maintence window fails with the cause "The supplied parameters for invoking the specified Automation document are incorrect.". |
Can confirm this is still an issue for automation task parameter values. |
Hi folks 👋 Releasing in version 2.20.0 of the Terraform AWS Provider later this, the resource "aws_ssm_maintenance_window_task" "example" {
max_concurrency = 2
max_errors = 1
priority = 1
service_role_arn = "${aws_iam_role.example.arn}"
task_arn = "AWS-RestartEC2Instance"
task_type = "AUTOMATION"
window_id = "${aws_ssm_maintenance_window.example.id}"
targets {
key = "InstanceIds"
values = ["${aws_instance.example.id}"]
}
task_invocation_parameters {
automation_parameters {
document_version = "$LATEST"
parameter {
name = "InstanceId"
values = ["${aws_instance.example.id}"]
}
}
}
} The resource documentation will be updated to include that example via #9362 and the |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Add support for automation task types in the
aws_ssm_maintenance_window_task
resource.From the current terraform docks
Docs
AWS SSM Doc
Terraform Version
Terraform v0.11.7
Affected Resource(s)
aws_ssm_maintenance_window_task
The text was updated successfully, but these errors were encountered: