{"id":19508876,"url":"https://github.com/rhythmictech/terraform-aws-ssm-patch-manager","last_synced_at":"2025-09-04T00:11:45.755Z","repository":{"id":45988323,"uuid":"328886424","full_name":"rhythmictech/terraform-aws-ssm-patch-manager","owner":"rhythmictech","description":"Sets up Patch Manager in an AWS account","archived":false,"fork":false,"pushed_at":"2023-11-24T17:26:35.000Z","size":55,"stargazers_count":7,"open_issues_count":7,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T22:46:13.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhythmictech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-12T05:53:39.000Z","updated_at":"2024-08-14T12:41:58.000Z","dependencies_parsed_at":"2025-01-09T00:45:51.428Z","dependency_job_id":null,"html_url":"https://github.com/rhythmictech/terraform-aws-ssm-patch-manager","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"rhythmictech/terraform-terraform-template","purl":"pkg:github/rhythmictech/terraform-aws-ssm-patch-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-ssm-patch-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-ssm-patch-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-ssm-patch-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-ssm-patch-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhythmictech","download_url":"https://codeload.github.com/rhythmictech/terraform-aws-ssm-patch-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhythmictech%2Fterraform-aws-ssm-patch-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273530050,"owners_count":25121921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T23:10:11.695Z","updated_at":"2025-09-04T00:11:45.706Z","avatar_url":"https://github.com/rhythmictech.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-ssm-patch-manager\nCreates a basic SSM Patch Manager setup\n\n[![tflint](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/workflows/tflint/badge.svg?branch=master\u0026event=push)](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/actions?query=workflow%3Atflint+event%3Apush+branch%3Amaster)\n[![tfsec](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/workflows/tfsec/badge.svg?branch=master\u0026event=push)](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/actions?query=workflow%3Atfsec+event%3Apush+branch%3Amaster)\n[![yamllint](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/workflows/yamllint/badge.svg?branch=master\u0026event=push)](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/actions?query=workflow%3Ayamllint+event%3Apush+branch%3Amaster)\n[![misspell](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/workflows/misspell/badge.svg?branch=master\u0026event=push)](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/actions?query=workflow%3Amisspell+event%3Apush+branch%3Amaster)\n[![pre-commit-check](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/actions/workflows/pre-commit.yaml/badge.svg)](https://github.com/rhythmictech/terraform-aws-ssm-patch-manager/actions/workflows/pre-commit.yaml)\n\u003ca href=\"https://twitter.com/intent/follow?screen_name=RhythmicTech\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/RhythmicTech?style=social\u0026logo=twitter\" alt=\"follow on Twitter\"\u003e\u003c/a\u003e\n\n## Example\nHere's what using the module will look like\n```hcl\nmodule \"patch_manager\" {\n  source  = \"rhythmictech/ssm-patch-manager/aws\"\n  version = \"~\u003e 1.0.0\"\n\n  log_bucket = var.log_bucket\n  tags       = var.tags\n}\n```\n\n## About\nThis module creates the needed resources to use the default Patch Baselines for any (or all) platforms supported by SSM Patch Manager.\n\n### NOTE:\nPatches will only be applied to instances tagged with `TAG_GROUP : $PLATFORM` where `$PLATFORM` is the name of the platform running on that instance.\n\n### Supported Platforms:\n- AMAZON_LINUX_2\n- AMAZON_LINUX\n- CENTOS\n- ORACLE_LINUX\n- SUSE\n- WINDOWS\n- DEBIAN\n- UBUNTU\n- REDHAT_ENTERPRISE_LINUX\n- MACOS\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.13.5 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 3.28 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | 4.53.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_ssm_maintenance_window.install](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window) | resource |\n| [aws_ssm_maintenance_window.scan](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window) | resource |\n| [aws_ssm_maintenance_window_target.install](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_target) | resource |\n| [aws_ssm_maintenance_window_target.scan](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_target) | resource |\n| [aws_ssm_maintenance_window_task.install](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_task) | resource |\n| [aws_ssm_maintenance_window_task.scan](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_task) | resource |\n| [aws_ssm_patch_group.patchgroup](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_patch_group) | resource |\n| [aws_ssm_patch_baseline.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ssm_patch_baseline) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_install_cloudwatch_configs\"\u003e\u003c/a\u003e [install\\_cloudwatch\\_configs](#input\\_install\\_cloudwatch\\_configs) | A set of objects containing `cloudwatch_config`s [docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_task#cloudwatch_config) | \u003cpre\u003eset(object({\u003cbr\u003e    cloudwatch_log_group_name = string\u003cbr\u003e    cloudwatch_output_enabled = bool\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_install_cutoff\"\u003e\u003c/a\u003e [install\\_cutoff](#input\\_install\\_cutoff) | How many hours before the end of the maintenance Window to stop scheduling new instances to install patches | `number` | `1` | no |\n| \u003ca name=\"input_install_duration\"\u003e\u003c/a\u003e [install\\_duration](#input\\_install\\_duration) | How long in hours for the install maintenance window | `number` | `3` | no |\n| \u003ca name=\"input_install_log_prefix\"\u003e\u003c/a\u003e [install\\_log\\_prefix](#input\\_install\\_log\\_prefix) | The S3 bucket subfolder to store install logs in | `string` | `\"/patch_manager/install/\"` | no |\n| \u003ca name=\"input_install_notification_configs\"\u003e\u003c/a\u003e [install\\_notification\\_configs](#input\\_install\\_notification\\_configs) | A set of objects containing `notification_config`s [docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_task#notification_config) | \u003cpre\u003eset(object({\u003cbr\u003e    notification_arn    = string\u003cbr\u003e    notification_events = list(string)\u003cbr\u003e    notification_type   = string\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_install_notification_role_arn\"\u003e\u003c/a\u003e [install\\_notification\\_role\\_arn](#input\\_install\\_notification\\_role\\_arn) | The role arn to use for notifications | `string` | `null` | no |\n| \u003ca name=\"input_install_schedule\"\u003e\u003c/a\u003e [install\\_schedule](#input\\_install\\_schedule) | 6-field Cron expression describing the install maintenance schedule | `string` | n/a | yes |\n| \u003ca name=\"input_log_bucket\"\u003e\u003c/a\u003e [log\\_bucket](#input\\_log\\_bucket) | S3 bucket that logs should be sent to | `string` | `null` | no |\n| \u003ca name=\"input_max_install_concurrency\"\u003e\u003c/a\u003e [max\\_install\\_concurrency](#input\\_max\\_install\\_concurrency) | The maximum number of instances to operate on at once | `number` | `2` | no |\n| \u003ca name=\"input_max_install_errors\"\u003e\u003c/a\u003e [max\\_install\\_errors](#input\\_max\\_install\\_errors) | The maximum number of errors before stopping the install task scheduling | `number` | `2` | no |\n| \u003ca name=\"input_max_scan_concurrency\"\u003e\u003c/a\u003e [max\\_scan\\_concurrency](#input\\_max\\_scan\\_concurrency) | The maximum number of instances to operate on at once | `number` | `20` | no |\n| \u003ca name=\"input_max_scan_errors\"\u003e\u003c/a\u003e [max\\_scan\\_errors](#input\\_max\\_scan\\_errors) | The maximum number of errors before stopping the install task scheduling | `number` | `20` | no |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | Name to assign to resources in this module | `string` | `\"patch-manager\"` | no |\n| \u003ca name=\"input_platforms\"\u003e\u003c/a\u003e [platforms](#input\\_platforms) | The list of platforms you want to support | `set(string)` | \u003cpre\u003e[\u003cbr\u003e  \"AMAZON_LINUX_2\",\u003cbr\u003e  \"AMAZON_LINUX\",\u003cbr\u003e  \"CENTOS\",\u003cbr\u003e  \"ORACLE_LINUX\",\u003cbr\u003e  \"SUSE\",\u003cbr\u003e  \"WINDOWS\",\u003cbr\u003e  \"DEBIAN\",\u003cbr\u003e  \"UBUNTU\",\u003cbr\u003e  \"REDHAT_ENTERPRISE_LINUX\",\u003cbr\u003e  \"MACOS\"\u003cbr\u003e]\u003c/pre\u003e | no |\n| \u003ca name=\"input_scan_cloudwatch_configs\"\u003e\u003c/a\u003e [scan\\_cloudwatch\\_configs](#input\\_scan\\_cloudwatch\\_configs) | A set of objects containing `cloudwatch_config`s [docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_task#cloudwatch_config) | \u003cpre\u003eset(object({\u003cbr\u003e    cloudwatch_log_group_name = string\u003cbr\u003e    cloudwatch_output_enabled = bool\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_scan_cutoff\"\u003e\u003c/a\u003e [scan\\_cutoff](#input\\_scan\\_cutoff) | How many hours before the end of the maintenance Window to stop scheduling new instances to scan | `number` | `1` | no |\n| \u003ca name=\"input_scan_duration\"\u003e\u003c/a\u003e [scan\\_duration](#input\\_scan\\_duration) | How long in hours for the scan maintenance window | `number` | `4` | no |\n| \u003ca name=\"input_scan_log_prefix\"\u003e\u003c/a\u003e [scan\\_log\\_prefix](#input\\_scan\\_log\\_prefix) | The S3 bucket subfolder to store scan logs in | `string` | `\"/patch_manager/scan/\"` | no |\n| \u003ca name=\"input_scan_notification_configs\"\u003e\u003c/a\u003e [scan\\_notification\\_configs](#input\\_scan\\_notification\\_configs) | A set of objects containing `notification_config`s [docs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_maintenance_window_task#notification_config) | \u003cpre\u003eset(object({\u003cbr\u003e    notification_arn    = string\u003cbr\u003e    notification_events = list(string)\u003cbr\u003e    notification_type   = string\u003cbr\u003e  }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_scan_notification_role_arn\"\u003e\u003c/a\u003e [scan\\_notification\\_role\\_arn](#input\\_scan\\_notification\\_role\\_arn) | The role arn to use for notifications | `string` | `null` | no |\n| \u003ca name=\"input_scan_schedule\"\u003e\u003c/a\u003e [scan\\_schedule](#input\\_scan\\_schedule) | 6-field Cron expression describing the scan maintenance schedule | `string` | n/a | yes |\n| \u003ca name=\"input_schedule_timezone\"\u003e\u003c/a\u003e [schedule\\_timezone](#input\\_schedule\\_timezone) | IANA format timezone to use for Maintenance Window scheduling | `string` | `\"UTC\"` | no |\n| \u003ca name=\"input_service_role_arn\"\u003e\u003c/a\u003e [service\\_role\\_arn](#input\\_service\\_role\\_arn) | The role that should be assumed when executing the task | `string` | `null` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | A map of tags to be added to associated resources | `map(string)` | \u003cpre\u003e{\u003cbr\u003e  \"terraform_managed\": \"True\"\u003cbr\u003e}\u003c/pre\u003e | no |\n\n## Outputs\n\nNo outputs.\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## Getting Started\nThis workflow has a few prerequisites which are installed through the `./bin/install-x.sh` scripts and are linked below. The install script will also work on your local machine. \n\n- [pre-commit](https://pre-commit.com)\n- [terraform](https://terraform.io)\n- [tfenv](https://github.com/tfutils/tfenv)\n- [terraform-docs](https://github.com/segmentio/terraform-docs)\n- [tfsec](https://github.com/tfsec/tfsec)\n- [tflint](https://github.com/terraform-linters/tflint)\n\nWe use `tfenv` to manage `terraform` versions, so the version is defined in the `versions.tf` and `tfenv` installs the latest compliant version.\n`pre-commit` is like a package manager for scripts that integrate with git hooks. We use them to run the rest of the tools before apply. \n`terraform-docs` creates the beautiful docs (above),  `tfsec` scans for security no-nos, `tflint` scans for best practices. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhythmictech%2Fterraform-aws-ssm-patch-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhythmictech%2Fterraform-aws-ssm-patch-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhythmictech%2Fterraform-aws-ssm-patch-manager/lists"}