diff --git a/test/typescript/synth-app/__snapshots__/test.ts.snap b/test/typescript/synth-app/__snapshots__/test.ts.snap index 65019496f2..60425c62f8 100644 --- a/test/typescript/synth-app/__snapshots__/test.ts.snap +++ b/test/typescript/synth-app/__snapshots__/test.ts.snap @@ -75,46 +75,6 @@ output "instance-http-endpoint" { output "tf-env-var-output" { value = "no-value-found" -} -resource "aws_wafv2_web_acl" "wafv2" { - name = "managed-rule-example" - scope = "REGIONAL" - default_action { - allow { - - } - } - rule { - name = "managed-rule-example" - priority = 1 - override_action { - count { - - } - } - statement { - managed_rule_group_statement { - name = "managed-rule-example" - vendor_name = "AWS" - excluded_rule { - name = "SizeRestrictions_QUERYSTRING" - } - excluded_rule { - name = "SQLInjection_QUERYSTRING" - } - } - } - visibility_config { - cloudwatch_metrics_enabled = true - metric_name = "managed-rule-example" - sampled_requests_enabled = true - } - } - visibility_config { - cloudwatch_metrics_enabled = true - metric_name = "managed-rule-example" - sampled_requests_enabled = true - } }" `; @@ -226,54 +186,6 @@ exports[`full integration test synth synth generates JSON 1`] = ` }, "provider": "aws" } - }, - "aws_wafv2_web_acl": { - "wafv2": { - "//": { - "metadata": { - "path": "hello-terra/wafv2", - "uniqueId": "wafv2" - } - }, - "default_action": { - "allow": {} - }, - "name": "managed-rule-example", - "rule": [ - { - "name": "managed-rule-example", - "override_action": { - "count": {} - }, - "priority": 1, - "statement": { - "managed_rule_group_statement": { - "excluded_rule": [ - { - "name": "SizeRestrictions_QUERYSTRING" - }, - { - "name": "SQLInjection_QUERYSTRING" - } - ], - "name": "managed-rule-example", - "vendor_name": "AWS" - } - }, - "visibility_config": { - "cloudwatch_metrics_enabled": true, - "metric_name": "managed-rule-example", - "sampled_requests_enabled": true - } - } - ], - "scope": "REGIONAL", - "visibility_config": { - "cloudwatch_metrics_enabled": true, - "metric_name": "managed-rule-example", - "sampled_requests_enabled": true - } - } } }, "terraform": { diff --git a/test/typescript/synth-app/main.ts b/test/typescript/synth-app/main.ts index 8575a0ec26..6714803048 100644 --- a/test/typescript/synth-app/main.ts +++ b/test/typescript/synth-app/main.ts @@ -11,7 +11,6 @@ import { } from "cdktf"; import { provider, snsTopic } from "./.gen/providers/aws"; import { Instance } from "./.gen/providers/aws/instance"; -import { Wafv2WebAcl } from "./.gen/providers/aws/wafv2-web-acl"; export class HelloTerra extends TerraformStack { constructor(scope: Construct, id: string) { @@ -85,45 +84,6 @@ export class HelloTerra extends TerraformStack { }, }, }); - - new Wafv2WebAcl(this, "wafv2", { - defaultAction: { - allow: {}, - }, - name: "managed-rule-example", - scope: "REGIONAL", - visibilityConfig: { - cloudwatchMetricsEnabled: true, - metricName: "managed-rule-example", - sampledRequestsEnabled: true, - }, - rule: [ - { - name: "managed-rule-example", - priority: 1, - overrideAction: { - count: {}, - }, - visibilityConfig: { - cloudwatchMetricsEnabled: true, - metricName: "managed-rule-example", - sampledRequestsEnabled: true, - }, - statement: { - managed_rule_group_statement: { - name: "managed-rule-example", - vendor_name: "AWS", - excluded_rule: [ - { - name: "SizeRestrictions_QUERYSTRING", - }, - { name: "SQLInjection_QUERYSTRING" }, - ], - }, - }, - }, - ], - }); } }