Skip to content
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

inport bunnynet_pullzone #15

Open
s5002557 opened this issue Oct 3, 2024 · 2 comments
Open

inport bunnynet_pullzone #15

s5002557 opened this issue Oct 3, 2024 · 2 comments

Comments

@s5002557
Copy link

s5002557 commented Oct 3, 2024

When I import a bunnynet_pullzone created automatically from an A DNS record (for example test-cdn-new.com to ip 12.12.12.12)
origin.url on bunny will be cty.StringVal("https://12.12.12.12") or cty.StringVal("http://12.12.12.12")
If I manually change the origin URL in the Bunny.net web console from "http://12.12.12.12" to "https://12.12.12.12" the cty.StringVal value will be set to "https://12.12.12.12:443"
I would like to terraform can change this value if in banny set diferent value or when auto create bunnynet_pullzone from A DNS record cty.StringVal set "https://12.12.12.12:443"
error:

│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to bunnynet_pullzone.pullzone["test-cdn-new.com"], provider "provider[\"registry.terraform.io/bunnyway/bunnynet\"]" produced an unexpected new value: .origin.url: was cty.StringVal("https://12.12.12.12"), but now
│ cty.StringVal("https://12.12.12.12:443/").
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

terraform and provider:

terraform -version
Terraform v1.9.0
on darwin_arm64
+ provider registry.terraform.io/bunnyway/bunnynet v0.3.15
+ provider registry.terraform.io/hashicorp/aws v4.67.0
@s5002557
Copy link
Author

s5002557 commented Oct 9, 2024

Also, if the original DNS record is modified via Terraform, the following will happen (random http or https and 80 or 443):

│ When applying changes to bunnynet_pullzone.pullzone_a_records["2**3"], provider "provider[\"registry.terraform.io/bunnyway/bunnynet\"]" produced an unexpected new value: .origin.url: was cty.StringVal("http://12.12.12.12"), but now
│ cty.StringVal("http://12.12.12.12:80").
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

@rafael-at-bunny
Copy link
Collaborator

Hi.

At the moment I don't have an answer for you. This is controlled by the bunny.net API and I don't have an answer from the team yet.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants