Data Source: aws_ssm_patch_baseline

Provides an SSM Patch Baseline data source. Useful if you wish to reuse the default baselines provided.

Example Usage

To retrieve a baseline provided by AWS:

data "aws_ssm_patch_baseline" "centos" {
  owner            = "AWS"
  name_prefix      = "AWS-"
  operating_system = "CENTOS"
}

To retrieve a baseline on your account:

data "aws_ssm_patch_baseline" "default_custom" {
  owner            = "Self"
  name_prefix      = "MyCustomBaseline"
  default_baseline = true
  operating_system = "WINDOWS"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

This data source exports the following attributes in addition to the arguments above: