-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Add SNS support for SSM Maintenance Tasks #5700
Comments
To add to this, if I create the task, and then manually add SNS later, it no longer sees "Install" as the first parameter, so later runs of the terraform plan/apply shows the resource needs to be recreated. Big problem since the infrastructure will always be out of date from the state. |
Hi, I don't see any work carried out on this. |
It's a shame that SNS option in SSM Maintenance task is not available. This is one of the potential enhancement. Can someone please look into it ? |
Hi folks 👋 Thank you for your interest in this feature request. Releasing in version 2.20.0 of the Terraform AWS Provider later this week, 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-RunShellScript"
task_type = "RUN_COMMAND"
window_id = "${aws_ssm_maintenance_window.example.id}"
targets {
key = "InstanceIds"
values = ["${aws_instance.example.id}"]
}
task_invocation_parameters {
run_command_parameters {
output_s3_bucket = "${aws_s3_bucket.example.bucket}"
output_s3_prefix = "output"
service_role_arn = "${aws_iam_role.example.arn}"
timeout_seconds = 600
notification_config {
notification_arn = "${aws_sns_topic.example.arn}"
notification_events = ["All"]
notification_type = ["Command"]
}
parameter {
name = "commands"
values = ["date"]
}
}
}
} The For further feature requests, documentation updates, or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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! |
Community Note
ECS SSM supports SNS subscriptions for RunCommands or Maintenance Tasks. Add this to terraform.
Add support for adding a SNS topic to Maintenance Tasks in terraform. Also extend the documentation on https://www.terraform.io/docs/providers/aws/r/ssm_maintenance_window_task.html#task_parameters
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: