Skip to content

Resource: awsOpsworksPermission

Provides an OpsWorks permission resource.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.opsworksPermission.OpsworksPermission(this, "my_stack_permission", {
  allowSsh: true,
  allowSudo: true,
  level: "iam_only",
  stackId: "${aws_opsworks_stack.stack.id}",
  userArn: "${aws_iam_user.user.arn}",
});

Argument Reference

The following arguments are supported:

  • allowSsh - (Optional) Whether the user is allowed to use SSH to communicate with the instance
  • allowSudo - (Optional) Whether the user is allowed to use sudo to elevate privileges
  • userArn - (Required) The user's IAM ARN to set permissions for
  • level - (Optional) The users permission level. Mus be one of deny, show, deploy, manage, iamOnly
  • stackId - (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.