Loading...
Loading...
### Terraform Version ```shell Terraform v1.14.3 on darwin_arm64 + provider registry.terraform.io/integrations/github v6.10.2 ``` ### Terraform Configuration Files ```terraform # This will give the deprecation error when running `terraform validate`: resource "github_team" "team" { name = "some-name" description = "a very good description here" privacy = "closed" create_default_maintainer = false } # But this will not: resource "github_team" "team" { name = "some-name" description = "a very good description here" privacy = "closed" create_default_maintainer = var.create_default_maintainer } ``` ### Debug Output Let me know if this is needed for this issue. ### Expected Behavior I expect that when running `terraform validate` it will output: ``` │ Warning: Argument is deprecated │ │ with module.name.module.name.github_team.team, │ on modules/github-team/main.tf line 5, in resource "github_team" "team": │ 5: create_default_maintainer = false │ │ Use github_team_membership or github_team_members resource to manage team memberships explicitly. ╵ Success! The configuration is valid, but there were some validation warnings as shown above. ``` ### Actual Behavior When running `terraform validate` it outputs: ``` Success! The configuration is valid. ``` ### Steps to Reproduce 1. `terraform init` 2. `terraform validate` ### Additional Context When running `terraform plan` it **does** show the warning. ``` Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # module.name.module.name.github_team.team will be created + resource "github_team" "team" { + create_default_maintainer = true + description = "a very good description here" + etag = (known after apply) + id = (known after apply) + members_count = (known after apply) + name = "some-name" + node_id = (known after apply) + notification_setting = "notifications_enabled" + parent_team_read_id = (known after apply) + parent_team_read_slug = (known after apply) + privacy = "closed" + slug = (known after apply) } Plan: 1 to add, 0 to change, 0 to destroy. ╷ │ Warning: Argument is deprecated │ │ with module.name.module.name.github_team.team, │ on modules/github-team/main.tf line 5, in resource "github_team" "team": │ 5: create_default_maintainer = var.create_default_maintainer │ │ Use github_team_membership or github_team_members resource to manage team memberships explicitly. ``` ### References - https://github.com/integrations/terraform-provider-github/issues/3137 ### 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.