Closed domenikk closed 1 year ago
@kislerdm This line stood out after a quick review of the relevant code: https://github.com/kislerdm/terraform-provider-neon/blob/e93ab5c15bbbb052b4b7f969cd8c69290c48d1bc/internal/provider/resource_project.go#L330-L332 (RoleName
instead of DatabaseName
).
Not sure if it explains why branch name
and role_name
are ignored as well.
@domenikk Hello! Thank you for opening the issue!
AFAIK, the default branch cannot be mutated upon project creation. I'll check with Neon folks, and come back with execution paths for us to align on if you don't mind. Thanks for your support!
Regards, Dmitry
@domenikk hey! A headsup: the issue's root cause was identified, it will be fixed in v0.2.2. ETA: 2023-09-20.
@kislerdm that's great news. Thanks a lot for looking into it
@domenikk Hey! Thank you for your contribution! May I kindly ask to star the repo to gain its visibility? Thanks!
Terraform Version
Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/domenikk/7eae89c13154375f721a800c00e6e363
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
Primary branch should have been created using the values (
name
,database_name
,role_name
) provided in config.Actual Behavior
Branch has been created with the default values from Neon, ignoring config. From
.tfstate
file:Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
Are there anything atypical about your accounts that we should know?
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example: