Loading...
Loading...
### Terraform Version ```shell 1.15.0-alpha20260304 ``` ### Terraform Configuration Files ```go func TestAccWAFV2WebACLRule_Identity_basic(t *testing.T) { ctx := acctest.Context(t) resourceName := "aws_wafv2_web_acl_rule.test" rName := acctest.RandomWithPrefix(t, acctest.ResourcePrefix) acctest.ParallelTest(ctx, t, resource.TestCase{ TerraformVersionChecks: []tfversion.TerraformVersionCheck{ tfversion.SkipBelow(tfversion.Version1_12_0), }, PreCheck: func() { acctest.PreCheck(ctx, t) }, ErrorCheck: acctest.ErrorCheck(t, names.WAFV2ServiceID), CheckDestroy: testAccCheckWebACLRuleDestroy(ctx, t), ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories, Steps: []resource.TestStep{ // Step 1: Setup { ConfigDirectory: config.StaticDirectory("testdata/WebACLRule/basic/"), ConfigVariables: config.Variables{ acctest.CtRName: config.StringVariable(rName), }, }, // Step 4: Import block with Resource Identity { ConfigDirectory: config.StaticDirectory("testdata/WebACLRule/basic/"), ConfigVariables: config.Variables{ acctest.CtRName: config.StringVariable(rName), }, ResourceName: resourceName, ImportState: true, ImportStateKind: resource.ImportBlockWithResourceIdentity, ImportPlanChecks: resource.ImportPlanChecks{ PreApply: []plancheck.PlanCheck{ plancheck.ExpectKnownValue(resourceName, tfjsonpath.New("web_acl_arn"), knownvalue.NotNull()), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrName), knownvalue.NotNull()), plancheck.ExpectKnownValue(resourceName, tfjsonpath.New(names.AttrRegion), knownvalue.StringExact(acctest.Region())), }, }, }, }, }) } ``` ### Debug Output This seems like a regression with Terraform core because: 1. Only affects latest alpha version 2. I've tried different versions of `terraform-plugin-framework` (v1.18.0 and v1.19.0), `terraform-plugin-go` (v0.30.0 and v0.31.0), `terraform-plugin-mux` (v0.22.0 and v0.23.0), and `terraform-plugin-testing` (v1.14.0 and v1.15.0) and the result is the same. **With v1.14.7:** ```console --- PASS: TestAccWAFV2WebACLRule_Identity_basic (61.46s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/wafv2 67.735s ``` **With v1.15.0-alpha20260218:** ```console --- PASS: TestAccWAFV2WebACLRule_Identity_basic (46.86s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/wafv2 53.186s ``` **With v1.15.0-alpha20260304:** ```console === CONT TestAccWAFV2WebACLRule_Identity_basic web_acl_rule_identity_gen_test.go:30: removing resource aws_wafv2_web_acl_rule.test from copied state: exit status 1 Error: No value for required variable on main_gen.tf line 45: 45: variable "rName" { The root module input variable "rName" is not set, and has no default value. Use a -var or -var-file command line argument to provide a value for this variable. --- FAIL: TestAccWAFV2WebACLRule_Identity_basic (42.82s) FAIL FAIL github.com/hashicorp/terraform-provider-aws/internal/service/wafv2 49.381s ``` ### Expected Behavior `ok` ### Actual Behavior `Error: No value for required variable` ### Steps to Reproduce Using Terraform v1.15.0-alpha20260304: 1. Create a framework resource 2. Import it by resource identity ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.