-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default branch then apply: get a validation error #5641
Comments
I was about to open the same issue and found this one! :) I paste my notes for further information: First issue: Failure trying to set default branch when
|
Do not try to update the AWS codecommit repository default branch if the resource definition does not set it or is an empty string. Fixes hashicorp#5641
Do not try to update or reaad the AWS codecommit repository default branch if the resource definition does not set it or is an empty string. Fixes hashicorp#5641
PR a patch in #5904. |
Do not try to update or reaad the AWS codecommit repository default branch if the resource definition is not set it or is an empty string. Fixes hashicorp#5641
Do not try to update or reaad the AWS codecommit repository default branch if the resource definition is not set it or is an empty string. Fixes hashicorp#5641
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Create a new code-commit reporistory in terraform without specifying the default branch:
Now clone the empty repo, create 1 commit, set the default branch and push.
Run apply again and you will get the following error:
It seems to be trying to update the default branch when it shouldn't since my .tf file never sets one.
The text was updated successfully, but these errors were encountered: