Skip to content

Resource: awsWorkspacesIpGroup

Provides an IP access control group in AWS WorkSpaces Service

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.workspacesIpGroup.WorkspacesIpGroup(this, "contractors", {
  description: "Contractors IP access control group",
  name: "Contractors",
  rules: [
    {
      description: "NY",
      source: "150.24.14.0/24",
    },
    {
      description: "LA",
      source: "125.191.14.85/32",
    },
    {
      description: "STL",
      source: "44.98.100.0/24",
    },
  ],
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the IP group.
  • description - (Optional) The description of the IP group.
  • rules - (Optional) One or more pairs specifying the IP group rule (in CIDR format) from which web requests originate.
  • tags – (Optional) A map of tags assigned to the WorkSpaces directory. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Nested Blocks

rules

Arguments

  • source - (Required) The IP address range, in CIDR notation, e.g., 10000/16
  • description - (Optional) The description.

Attributes Reference

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

  • id - The IP group identifier.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

WorkSpaces IP groups can be imported using their GroupID, e.g.,

$ terraform import aws_workspaces_ip_group.example wsipg-488lrtl3k