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 instanceallowSudo
- (Optional) Whether the user is allowed to use sudo to elevate privilegesuserArn
- (Required) The user's IAM ARN to set permissions forlevel
- (Optional) The users permission level. Mus be one ofdeny
,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.