wafv2 rule-group - rule "statement" is not getting reflected in the cdk.tf.json #2469
Labels
bug/has-workaround
A bug with a workaround (may not be elegant)
bug
Something isn't working
cdktf
confirmed
independently reproduced by an engineer on the team
help wanted
Community contributions welcome as the core team is unlikely to work on this soon
priority/backlog
Low priority (though possibly still important). Unlikely to be worked on within the next 6 months.
provider/aws
Issue shows up using AWS provider
provider get / generation
size/medium
estimated < 1 week
Community Note
cdktf & Language Versions
language: python
cdktf-cli: 0.13.3
node: v18.12.1
cdktf: 0.13.3
constructs: 10.1.188
jsii: 1.72.0
terraform: 1.1.9
arch: x64
os: darwin 22.2.0
python: Python 3.10.8
pip: pip 22.3.1 from /usr/local/lib/python3.10/site-packages/pip (python 3.10)
pipenv: pipenv, version 2022.9.24
Affected Resource(s)
wafv2 RuleGroup , Rules
Debug Output
deploy fails with error -
[ERROR] default - ╷
│ Error: creating WAFv2 RuleGroup (test-cdk): WAFInvalidParameterException: Error reason: EXACTLY_ONE_CONDITION_REQUIRED, field: STATEMENT, parameter: Statement
│ {
│ RespMetadata: {
│ StatusCode: 400,
│ RequestID: "7beaebeb-dc61-460d-9c47-10a9188b56eb"
│ },
│ Field: "STATEMENT",
│ Message_: "Error reason: EXACTLY_ONE_CONDITION_REQUIRED, field: STATEMENT, parameter: Statement",
│ Parameter: "Statement",
│ Reason: "You have used none or multiple values for a field that requires exactly one value."
│ }
│
│ with aws_wafv2_rule_group.test-rg-cdk,
│ on cdk.tf .json line 69, in resource.aws _wafv2_rule_group.test-rg-cdk:
│ 69: }
Expected Behavior
The rule statement should be present.
Actual Behavior
statement is blank, making the deploy fail.
Steps to Reproduce
Use cdktf python , main.py definition -
Run cdktf deploy
Refer the below cdk.tf.json output file -- showing blank statement line-39-
The text was updated successfully, but these errors were encountered: