github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/opsworks_permission.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_opsworks_permission"
     4  sidebar_current: "docs-aws-resource-opsworks-permission"
     5  description: |-
     6    Provides an OpsWorks permission resource.
     7  ---
     8  
     9  # aws\_opsworks\_permission
    10  
    11  Provides an OpsWorks permission resource.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_opsworks_permission" "my_stack_permission" {
    17    allow_ssh  = true
    18    allow_sudo = true
    19    level      = "iam_only"
    20    user_arn   = "${aws_iam_user.user.arn}"
    21    stack_id   = "${aws_opsworks_stack.stack.id}"
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `allow_ssh` - (Optional) Whether the user is allowed to use SSH to communicate with the instance
    30  * `allow_sudo` - (Optional) Whether the user is allowed to use sudo to elevate privileges
    31  * `user_arn` - (Required) The user's IAM ARN to set permissions for
    32  * `level` - (Optional) The users permission level. Mus be one of `deny`, `show`, `deploy`, `manage`, `iam_only`
    33  * `stack_id` - (Required) The stack to set the permissions for
    34  
    35  ## Attributes Reference
    36  
    37  The following attributes are exported:
    38  
    39  * `id` - The computed id of the permission. Please note that this is only used internally to identify the permission. This value is not used in aws.