Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] provider/aws: AWS WAF Regional Rule support #13710

Closed
wants to merge 2 commits into from

Conversation

yusukegoto
Copy link
Contributor

@yusukegoto yusukegoto commented Apr 17, 2017

This PR is from #13676.

test

resource "aws_wafregional_byte_match_set" "byte_set" {
  name = "tf_waf_byte_match_set"
  byte_match_tuples {
    text_transformation = "NONE"
    target_string = "badrefer1"
    positional_constraint = "CONTAINS"
    field_to_match {
      type = "HEADER"
      data = "referer"
    }
  }
}

resource "aws_wafregional_rule" "wafrule" {
  depends_on = ["aws_wafregional_byte_match_set.byte_set"]
  name = "tfWAFRule"
  metric_name = "tfWAFRule"
  predicates {
    data_id = "${aws_wafregional_byte_match_set.byte_set.id}"
    negated = false
    type = "ByteMatch"
  }
}

exec


aws_wafregional_byte_match_set.byte_set: Creating...
  byte_match_tuples.#:                                         "" => "1"
  byte_match_tuples.2174619346.field_to_match.#:               "" => "1"
  byte_match_tuples.2174619346.field_to_match.2991901334.data: "" => "referer"
  byte_match_tuples.2174619346.field_to_match.2991901334.type: "" => "HEADER"
  byte_match_tuples.2174619346.positional_constraint:          "" => "CONTAINS"
  byte_match_tuples.2174619346.target_string:                  "" => "badrefer1"
  byte_match_tuples.2174619346.text_transformation:            "" => "NONE"
  name:                                                        "" => "tf_waf_byte_match_set"
aws_wafregional_byte_match_set.byte_set: Creation complete (ID: 52536644-e97e-4d13-b559-8986d906dec5)
aws_wafregional_rule.wafrule: Creating...
  metric_name:                   "" => "tfWAFRule"
  name:                          "" => "tfWAFRule"
  predicates.#:                  "" => "1"
  predicates.4191307216.data_id: "" => "52536644-e97e-4d13-b559-8986d906dec5"
  predicates.4191307216.negated: "" => "false"
  predicates.4191307216.type:    "" => "ByteMatch"
aws_wafregional_rule.wafrule: Creation complete (ID: ad00c0df-134f-4c22-9964-d9da542d8f17)

@yusukegoto yusukegoto changed the title providor/aws: AWS WAF Regional Rule support [WIP] providor/aws: AWS WAF Regional Rule support Apr 17, 2017
@yusukegoto yusukegoto changed the title [WIP] providor/aws: AWS WAF Regional Rule support [WIP] provider/aws: AWS WAF Regional Rule support Apr 23, 2017
@DennyLoko
Copy link

Hello @yusukegoto. Since #13705 has already been merged, would you mind to rebase this?

@apparentlymart
Copy link
Contributor

Closing this in favor of hashicorp/terraform-provider-aws#1045.

@ghost
Copy link

ghost commented Apr 6, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants