Provides a WAF Regional Geo Match Set Resource
resource "aws_wafregional_geo_match_set" "geo_match_set" {
name = "geo_match_set"
geo_match_constraint {
type = "Country"
value = "US"
}
geo_match_constraint {
type = "Country"
value = "CA"
}
}
This resource supports the following arguments:
name
- (Required) The name or description of the Geo Match Set.geo_match_constraint
- (Optional) The Geo Match Constraint objects which contain the country that you want AWS WAF to search for.geo_match_constraint
type
- (Required) The type of geographical area you want AWS WAF to search for. Currently Country is the only valid value.value
- (Required) The country that you want AWS WAF to search for.
This is the two-letter country code, e.g., US
, CA
, RU
, CN
, etc.
See docs for all supported values.This resource exports the following attributes in addition to the arguments above:
id
- The ID of the WAF Regional Geo Match Set.In Terraform v1.5.0 and later, use an import
block to import WAF Regional Geo Match Set using the id. For example:
import {
to = aws_wafregional_geo_match_set.geo_match_set
id = "a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc"
}
Using terraform import
, import WAF Regional Geo Match Set using the id. For example:
% terraform import aws_wafregional_geo_match_set.geo_match_set a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc