» Resource: aws_opsworks_permission

Provides an OpsWorks permission resource.

» Example Usage

resource "aws_opsworks_permission" "my_stack_permission" {
  allow_ssh  = true
  allow_sudo = true
  level      = "iam_only"
  user_arn   = "${aws_iam_user.user.arn}"
  stack_id   = "${aws_opsworks_stack.stack.id}"
}

» Argument Reference

The following arguments are supported:

  • allow_ssh - (Optional) Whether the user is allowed to use SSH to communicate with the instance
  • allow_sudo - (Optional) Whether the user is allowed to use sudo to elevate privileges
  • user_arn - (Required) The user's IAM ARN to set permissions for
  • level - (Optional) The users permission level. Mus be one of deny, show, deploy, manage, iam_only
  • stack_id - (Required) The stack to set the permissions for

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • 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.