AWS WAF Regional Regional Geo Match Set

This page shows how to write Terraform and CloudFormation for AWS WAF Regional Regional Geo Match Set and write them securely.

aws_wafregional_geo_match_set (Terraform)

The Regional Geo Match Set in AWS WAF Regional can be configured in Terraform with the resource name aws_wafregional_geo_match_set. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

waf_geo_match.tf#L1
resource "aws_wafregional_geo_match_set" "gb" {
  name = "geo_match_set"

  geo_match_constraint {
    type  = "Country"
    value = "GB"
waf_geo_match.tf#L1
resource "aws_wafregional_geo_match_set" "gb" {
  name = "geo_match_set"

  ## UCFS traffic originates from GB
  geo_match_constraint {
    type  = "Country"
waf_geo_match.tf#L1
resource "aws_wafregional_geo_match_set" "gb" {
  name = "geo_match_set"

  ## UCFS traffic originates from GB
  geo_match_constraint {
    type  = "Country"
50-waf.tf#L1
resource "aws_wafregional_geo_match_set" "geo_match_set" {
  name = "geo_match_set"

  geo_match_constraint {
    type  = "Country"
    value = "US"
waf_geo_match.tf#L1
resource "aws_wafregional_geo_match_set" "geo_match" {
  name = "geo_match_set"

  dynamic "geo_match_constraint" {
    for_each = var.geo_match_constraints
    content {

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a WAF Regional Geo Match Set Resource

AWS::WAFRegional::GeoMatchSet (CloudFormation)

The GeoMatchSet in WAFRegional can be configured in CloudFormation with the resource name AWS::WAFRegional::GeoMatchSet. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

minimal.yaml#L447
    Type: AWS::WAFRegional::GeoMatchSet
    Properties:
      Name: Name
  IPSet:
    Type: AWS::WAFRegional::IPSet
    Properties:
7-waf-geo-constrain.yaml#L20
    Type: 'AWS::WAFRegional::GeoMatchSet'
    Properties:
      Name: 'GeoMatchSet for restricted countries'
    #  GeoMatchConstraints:
    #    -
    #       Type: 'Country'
awsResouceIconMatches.json#L527
        "resourceType": "AWS::WAFRegional::GeoMatchSet",
        "filePath": null
      },
      {
        "resourceType": "AWS::WAFRegional::RegexPatternSet",
        "filePath": null
template.json#L407
    "AWS::WAFRegional::GeoMatchSet": {
      "Type": "AWS::WAFRegional::GeoMatchSet",
      "Properties": {}
    },
    "AWS::WAFv2::RegexPatternSet": {
      "Type": "AWS::WAFv2::RegexPatternSet",
WAFRegionalGeoMatchSetSpecification.json#L3
    "AWS::WAFRegional::GeoMatchSet.GeoMatchConstraint": {
      "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-geomatchset-geomatchconstraint.html",
      "Properties": {
        "Type": {
          "Required": true,
          "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-geomatchset-geomatchconstraint.html#cfn-wafregional-geomatchset-geomatchconstraint-type",

Parameters

Explanation in CloudFormation Registry

Note This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide. For the latest version of AWS WAF , use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use. Contains one or more countries that AWS WAF will search for.

Frequently asked questions

What is AWS WAF Regional Regional Geo Match Set?

AWS WAF Regional Regional Geo Match Set is a resource for WAF Regional of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS WAF Regional Regional Geo Match Set?

For Terraform, the dwp/aws-analytical-env, dwp/dataworks-metrics-infrastructure and dwp/aws-concourse source code examples are useful. See the Terraform Example section for further details.

For CloudFormation, the PatMyron/cloud, technebular/AWS and pistazie/cdk-dia source code examples are useful. See the CloudFormation Example section for further details.