terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

[BUG]: Trying to update provider from v5 to v6 fails with error

Open nnellanspdl opened this issue 1 year ago • 0 comments

Expected Behavior

Modify my code to support the new v6 syntax, and be able to run a plan and apply like normal.

Actual Behavior

I was previously using v5 of the provider. I updated my code to use v6. I also updated my code to follow the new syntax for the github_branch_protection resource. However, when I run a Plan I get the error below.

It is very similar to this issue which discusses going from v4 to v5. Looks like you had to add some sort of migration to the backend.

Can you please apply the same fix here?

Warning: Failed to decode resource from state
Error decoding
github_branch_protection
from prior state: unsupported attribute "blocks_creations"

Terraform Version

Terraform 1.5.7

Affected Resource(s)

  • github_branch_protection

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

nnellanspdl avatar May 17 '24 16:05 nnellanspdl