github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/aws/r/ssm_document.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_ssm_document" 4 sidebar_current: "docs-aws-resource-ssm-document" 5 description: |- 6 Provides an SSM Document resource 7 --- 8 9 # aws\_ssm\_document 10 11 Provides an SSM Document resource 12 13 ## Example Usage 14 15 ``` 16 resource "aws_ssm_document" "foo" { 17 name = "test_document" 18 document_type = "Command" 19 20 content = <<DOC 21 { 22 "schemaVersion": "1.2", 23 "description": "Check ip configuration of a Linux instance.", 24 "parameters": { 25 26 }, 27 "runtimeConfig": { 28 "aws:runShellScript": { 29 "properties": [ 30 { 31 "id": "0.aws:runShellScript", 32 "runCommand": ["ifconfig"] 33 } 34 ] 35 } 36 } 37 } 38 DOC 39 } 40 ``` 41 42 ## Argument Reference 43 44 The following arguments are supported: 45 46 * `name` - (Required) The name of the document. 47 * `content` - (Required) The json content of the document. 48 * `document_type` - (Required) The type of the document. Valid document types include: `Command`, `Policy` and `Automation` 49 * `permissions` - (Optional) Additional Permissions to attach to the document. See [Permissions](#permissions) below for details. 50 51 ## Attributes Reference 52 53 The following attributes are exported: 54 55 * `name` - The name of the document. 56 * `content` - The json content of the document. 57 * `created_date` - The date the document was created. 58 * `description` - The description of the document. 59 * `document_type` - The type of document created. 60 * `default_version` - The default version of the document. 61 * `hash` - The sha1 or sha256 of the document content 62 * `hash_type` - "Sha1" "Sha256". The hashing algorithm used when hashing the content. 63 * `latest_version` - The latest version of the document. 64 * `owner` - The AWS user account of the person who created the document. 65 * `status` - "Creating", "Active" or "Deleting". The current status of the document. 66 * `parameter` - The parameters that are available to this document. 67 * `permissions` - The permissions of how this document should be shared. 68 * `platform_types` - A list of OS platforms compatible with this SSM document, either "Windows" or "Linux". 69 70 ## Permissions 71 72 The permissions attribute specifies how you want to share the document. If you share a document privately, 73 you must specify the AWS user account IDs for those people who can use the document. If you share a document 74 publicly, you must specify All as the account ID. 75 76 The permissions mapping supports the following: 77 78 * `type` - The permission type for the document. The permission type can be `Share`. 79 * `account_ids` - The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or `All`.