github.com/ves/terraform@v0.8.0-beta2/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    content = <<DOC
    19    {
    20      "schemaVersion": "1.2",
    21      "description": "Check ip configuration of a Linux instance.",
    22      "parameters": {
    23  
    24      },
    25      "runtimeConfig": {
    26        "aws:runShellScript": {
    27          "properties": [
    28            {
    29              "id": "0.aws:runShellScript",
    30              "runCommand": ["ifconfig"]
    31            }
    32          ]
    33        }
    34      }
    35    }
    36  DOC
    37  }
    38  ```
    39  
    40  ## Argument Reference
    41  
    42  The following arguments are supported:
    43  
    44  * `name` - (Required) The name of the document.
    45  * `content` - (Required) The json content of the document.
    46  * `permission` - (Optional) Additional Permissions to attach to the document. See [Permissions](#permissions) below for details.
    47  
    48  ## Attributes Reference
    49  
    50  The following attributes are exported:
    51  
    52  * `name` - The name of the document
    53  * `content` -  The json content of the document
    54  * `created_date` - The date the document was created
    55  * `description` - The description of the document
    56  * `hash` - The sha1 or sha256 of the document content
    57  * `hash_type` - "Sha1" "Sha256". The hashing algorithm used when hashing the content.
    58  * `owner` - The AWS user account of the person who created the document.
    59  * `status` - "Creating", "Active" or "Deleting". The current status of the document.
    60  * `parameter` - The parameters that are available to this document.
    61  * `permission` - The permissions of how this document should be shared.
    62  * `platform_type` - "Windows" or "Linux". A list of OS platforms compatible with this SSM document.
    63  
    64  ## Permissions
    65  
    66  The permission attribute specifies how you want to share the document. If you share a document privately,
    67  you must specify the AWS user account IDs for those people who can use the document. If you share a document
    68  publicly, you must specify All as the account ID.
    69  
    70  The permission mapping support the following:
    71  
    72  * `type` - The permission type for the document. The permission type can be `Share`.
    73  * `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`.