Provides an OpsWorks permission resource.
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
}
This resource supports the following arguments:
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 of deny
, show
, deploy
, manage
, iam_only
stack_id
- (Required) The stack to set the permissions forThis resource exports the following attributes in addition to the arguments above:
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.