Skip to content

Amazon SSM Maintenance window task issue

0

Hello Team,

I manually created a maintenance window to automate the patching of all EC2 instances, and it worked. I then decided to deploy the maintenance window using Terraform. However, once it was successfully deployed, the tasks failed to run. I configured it exactly the same as in my manually created maintenance window, but I’m not sure what went wrong.

The error:

  1. Execution Task: The maximum error count was exceeded.
  2. Task Invocations: The specified parameters are incomplete or invalid.

TF code for tasks: Enter image description here

asked 2 years ago492 views
1 Answer
0
Accepted Answer

Hello.

I'm reading the following documentation, and it looks like the parameters for "run_command_parameters" are different.
For example, I don't think you can use "document_version".
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_task#run_command_parameters

EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.