Provides an IP access control group in AWS WorkSpaces Service
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"
}
}
This resource supports the following arguments:
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 default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.rules
source
- (Required) The IP address range, in CIDR notation, e.g., 10.0.0.0/16
description
- (Optional) The description.This resource exports the following attributes in addition to the arguments above:
id
- The IP group identifier.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.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