-
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
Feature Request: Systems Manager Patch Baseline Data Source #5116
Comments
I had a look at adding this data source and it seems the api for searching for patch baselines (DescribePatchBaselines) isn't so friendly. It only allows searching on NAME_PREFIX and OWNERS, but names of patch baselines are not unique, I think this will mean a similar approach to how ami lookups are done with filtering inside the provider on top of the limited filtering provided by the api. |
Did this develop any further @jfharden ? I wanted to take a look at implementing this so looked to see what difficulties you came across. An additional use case for this would be to retrieve back the default baselines provided by AWS in order to apply them to a patch group, etc. Edit: Thinking about this more:
Based on what @jfharden said about looking at the data source for AMIs for inspiration, there could be arguments of:
While only one of the arguments above is required, one or more other arguments will be required in order to ensure only one Baseline is retrieved. If the filtered list of baselines contains more than one element, then an error is thrown. Let me know your thoughts, I'm happy to implement this based on feedback. |
Support for a new |
This has been released in version 2.48.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests 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
Description
A patch baseline defines which patches are approved for installation on your instances. This data source will provide a mechanism to search for and retrieve details about a patch baseline. Search filters to include
OS
,Owner
and a boolean flag to indicate whether the query should return default patch baselines or not.New or Affected Resource(s)
data.aws_ssm_patch_baseline
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: