Open reshma-ayyappan opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
The default branch property of the repository is set correctly in CodeCommit but it is not registered in terraform.tfstate as when you "terraform apply" a second time, it shows a change on the default_branch property. Say "yes" on the second apply, and it is set correctly.
Terraform Core Version
0.14.5
AWS Provider Version
~> 4.0
Affected Resource(s)
aws_codecommit_repository
Expected Behavior
As per the documentation https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codecommit_repository#attributes-reference , assume the optional parameter default_branch will add a branch to the repository
Actual Behavior
No default branch is not being added to repository as expected
Relevant Error/Panic Output Snippet
Terraform Configuration Files
main.tf :
Steps to Reproduce
Create terraform using code under 'Terraform Configuration Files' section and run terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None