Data Source: aws_ssm_document

Gets the contents of the specified Systems Manager document.

Example Usage

To get the contents of the document owned by AWS.

data "aws_ssm_document" "foo" {
  name            = "AWS-GatherSoftwareInventory"
  document_format = "YAML"
}

output "content" {
  value = data.aws_ssm_document.foo.content
}

To get the contents of the custom document.

data "aws_ssm_document" "test" {
  name            = aws_ssm_document.test.name
  document_format = "JSON"
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

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