FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_ssm_document

Provides an SSM Document resource

Example Usage

resource "aws_ssm_document" "foo" {
  name    = "test_document",
  content = <<DOC
  {
    "schemaVersion": "1.2",
    "description": "Check ip configuration of a Linux instance.",
    "parameters": {

    },
    "runtimeConfig": {
      "aws:runShellScript": {
        "properties": [
          {
            "id": "0.aws:runShellScript",
            "runCommand": ["ifconfig"]
          }
        ]
      }
    }
  }
DOC
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Permissions

The permission attribute specifies how you want to share the document. If you share a document privately, you must specify the AWS user account IDs for those people who can use the document. If you share a document publicly, you must specify All as the account ID.

The permission mapping support the following:


See the source of this document at Terraform.io