Resource: aws_workspaces_ip_group

Provides an IP access control group in AWS WorkSpaces Service

Example Usage

resource "aws_workspaces_ip_group" "contractors" {
  name        = "Contractors"
  description = "Contractors IP access control group"
  rules {
    source      = "150.24.14.0/24"
    description = "NY"
  }
  rules {
    source      = "125.191.14.85/32"
    description = "LA"
  }
  rules {
    source      = "44.98.100.0/24"
    description = "STL"
  }
}

Argument Reference

This resource supports the following arguments:

Nested Blocks

rules

Arguments

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import WorkSpaces IP groups using their GroupID. For example:

import {
  to = aws_workspaces_ip_group.example
  id = "wsipg-488lrtl3k"
}

Using terraform import, import WorkSpaces IP groups using their GroupID. For example:

% terraform import aws_workspaces_ip_group.example wsipg-488lrtl3k