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 instanceallow_sudo
- (Optional) Whether the user is allowed to use sudo to elevate privilegesuser_arn
- (Required) The user’s IAM ARN to set permissions forlevel
- (Optional) The users permission level. Mus be one ofdeny
,show
,deploy
,manage
,iam_only
stack_id
- (Required) The stack to set the permissions for
Attributes Reference
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.
See the source of this document at Terraform.io